ITEC 120 Lab Quiz 1 - Tuesday, Jan 21

Lab Quiz 1 - Find the sum and average of 3 quiz grades.
Submit your program to your directory on neelix .

Declare 3 integer variables to store 3 quiz grades.

Assign the value of 6 to the first variable.
Assign the value of 7 to the second variable.

Assign the value of 9 to the third variable.

Use println to output the values of the each of the variables, along with a descriptive string.

Find the sum of the three variables, and output the sum.

Find the average of the three quiz grades and output the average. You should find the floating point average of the three grades.

Name your program file labquiz1.java and save it to your folder on neelix.


To get full credit, your output needs be nicely formatted. Here is a sample output. (Note: these are not the correct numbers.)

Grade on quiz 1 is 4
Grade on quiz 2 is 6
Grade on quiz 3 is 7
The sum of the quiz grades is 17
Your quiz average is 5.666666666666667