Recall that in Lab 2 we wrote a Java program to calculate your
current course average. You now have
grades for one quiz, four labs, and two homework assignments . Rewrite your
Lab2.java
so that it properly calculates your current CS140
average for real.
Your program should print out your current exam average, lab average, and homework averages as percentages between 0 and 100 to one decimal place. For example:
Lab Avg: 100.0% HW Avg: 90.2% Exam Avg: 72.3% Overall Avg: 81.4%
Just like in the lab you should not do any calculations "in your head" and then hardcode those values into your program. Let Java do the calculating. Your program will be graded on the following:
HW3
and that the file is named
HW3.java
.
HW3.java