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 94Explanation / 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; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.