Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java CS 0007 Programming Assignment 4 Problem Write a program that asks the user

ID: 3687706 • Letter: J

Question

Java

CS 0007 Programming Assignment 4

Problem

Write a program that asks the user for the number of students in a class and the number of exams in the course, and then gets as input the student names and their scores on the exams. You should store these scores in a twodimensional array, and then compute and output the following:

Each student’s average on the exams.

The max and min scores earned for each exam.

The average student score for the entire course.

Example

3 students, 3 exams

Exam 1: Max 100, Min 78

Exam 2: Max 90, Min 88

Exam 3: Max 100, Min 92

Adam: Average 93.3

Betty: Average 88.7

Carl: Average 91 Class Average: 91

What to Submit

Your .java file.

Exam 1 Exam 2 Exam 3 Adam 100 88 92 Betty 78 88 100 Carl 89 90 94

Explanation / Answer

import java.util.Scanner; public class JavaProgram { public static void main(String args[]) { int mark[] = new int[3]; int i; float sum=0; float avg, perc; Scanner scan = new Scanner(System.in); System.out.print("Enter students name : Adam "); System.out.print("Enter Max,Min marks : 100,78 "); for(i=0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote