Java program: Statistics
Create a Java program that gives statistics for a list of grades
Your program will loop to enter grades for each student until a negative grade is entered. When a negative grade is entered you will print the statistics shown below.
- Print the number of students
- Print the average grade
- Print the lowest and highest grade
- Print the number of students who passed
- Print the number of students who failed
Guidelines:
- Your program must start with comments giving your name and the name of the assignment.
- Your program must use good variable names.
- All input must have a good prompt so that the user knows what to enter.
- All output must clearly describe what is output.
- The program must be your own work.
- All assignments for this class must be submitted in Blackboard.
- You must submit one word document that includes the source code, and screen shots of good test data.
- In addition please submit the Java file that you can find in the src folder of the project.
Your program should read in the first value and assign it as lowest and highest rather than setting lowest and highest to some arbitrary values.
Grading Rubric
Rubric |
Points |
Program works correctly, no errors |
5 |
Comments, good names, indented |
1 |
Clear user interface |
1 |
Word document and Java File |
1 |
Screen shots show good test data |
2 |
Standards
- Your program must start with comments giving your name and the name of the assignment.
- If there are any variables your program must use good variable names.
- All input (if any) must have a good prompt so that the user knows what to enter.
- All output must clearly describe what is output.
- The program must be your own work.
- All assignments for this class must be submitted in Blackboard.
- You must submit one word document that includes the source code, and screen shots of good test data.
- Assignments may be submitted up until midnight on the due date.
- You may use the assignment submission page to ask for help, but make sure that you clearly indicate that you are asking for help and not submitting for grading.
If you do not receive a perfect score you may resubmit it as long as it is resubmitted within 3 days.
Assignment IndexThis web site, and all pages therein, are the sole property and responsibility of Zebra0.com.
It is not endorsed, sponsored, or provided by or on behalf of Montgomery College.