gradeSheet6

advertisement
CS 110: Program 6
Student:
Account:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Largest: 40.4
Smallest: 10.1
Mean: 25.249999999999996
20.2
10.1
40.4
30.3
0
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Enter a number or 0 to quit:
Largest: 6.6
Smallest: 1.1
Mean: 3.666666666666666
6.6
3.3
1.1
0
Enter a number or 0 to quit: 100.0
Enter a number or 0 to quit: 0
Largest: 100.0
Smallest: 100.0
Mean: 100.0
Enter a number or 0 to quit: 0
You did not enter any numbers
20 points possible

10 points - Output Correctness
o
o
o
o
o




The program loops until the sentinel value (0) is entered (2)
The program displays the correct largest value (2)
The program displays the correct smallest value (2)
The program displays the correct mean value (2)
Duplicate the sample output exactly, do not make up your own words or formatting (2)
4 points - Boundary Conditions
o The algorithm works correctly when only one number entered by the user (2)
o The algorithm works correctly when no numbers entered by the user (2)
2 points - Comments and Alignment
o File header comment are present and complete
o Single-line comments are present, helpful, and sufficient
 Skip a blank line before every single-line comment
 Generally one single-line comment is needed for every four to six lines of code
o Use jGRASP Generate CSD to properly align your printout
o Alignment and indentation are important. Read through the Java Style Guide for CS 110
expectations
2 points - Identifier Names
o Meaningful identifier names used for all identifiers
 Variable names should begin with a lower case letter, and each subsequent word
should start with an upper-case letter.
 Avoid the use of abbreviations in choosing variable names
o Read through the Java Style Guide for CS 110 expectations.
2 points - Creation of Assignment Folder, File, and Printouts
o Folder U:\programs\program6\ created correctly on your network U:\ drive
o Java source code file saved as BigAndSmall.java
Download