Educational Goals: Familiarity with the language and compiler.
Write a Java program to compute your grade percentage for this class. The grade calculation is given on the syllabus. Your program should read in grades for each graded item (quizzes, homeworks, programs, and exams), and calculate the current percentage.
Your program should generate two outputs. First, the overall percentage should be calculated. For example, if the only graded item so far is the midterm, and the score was 100%, then the overall percentage should be 25. Second, the cumulative percentage should be calculated. The cumulative percentage is the percentage of points obtained for the items that have been graded. For example, if the only graded item so far is the midterm, and the score was 75%, then the cumulative percentage should be 75.
Assume there will be five programs worth 100 points apiece, three homeworks worth 10 points apiece, and three quizzes worth 10 points apiece. Both exams will be worth 100 points. You do not have to check whether the numbers are valid (that is, between -1 and 10 or -1 and 100).
Your program will be compiled and run automatically. Therefore, it is very important that your program use the following naming convention, and that your programs accept inputs in the exact format that is specified here. Any program that does not adhere to these specifications will lose 10 points.
Submit your program as follows:
Your program must accept inputs from standard input (the keyboard) as follows:
10
10
-1
0
8
-1
80
79
90
-1
-1
95
-1
When given the above inputs, your program should produce the outputs:
Overall Score: 45.84/100 Cumulative Score: 87.05/100
Your program will be graded on the following factors:
Jeff Offutt