CS 140 - Homework 3 - Due Thursday Sep 18


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%

Grading

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:

  1. Your output should be properly formatted and neat.
  2. The answers should be correct for your grades. (Review how your grade is calculated in the syllabus).
  3. Make sure your class is named HW3 and that the file is named HW3.java.
  4. Turn in a printout of your program at the beginning of class on Thursday Nov 18.
  5. Save the file to the T: drive in your student folder with the proper name HW3.java