Sample Outcomes for A04
Return to assignment description
The following are examples
of running the GradeDistribution program for A04.
Text in blue shows where the user enters input,
with the showing where the user presses the enter key.
Grade Distribution
------------------
This program prints a bar graph showing the distribution of grades in a class.
By Mark Young (A00000000)
...press enter...
Enter the grades below, ending with a negative number:
0 10 20 30 40 50 60 70 80 90 100 -1
...press enter...
Distribution
80+ |***
70-79 |*
60-69 |*
0-59 |******
...press enter...
Grade Distribution
------------------
This program prints a bar graph showing the distribution of grades in a class.
By Mark Young (A00000000)
...press enter...
Enter the grades below, ending with a negative number:
95 91 90 98 93 100 96 95 91
77 73 72
69 67 60 60 60
55 40 20
-1
...press enter...
Distribution
80+ |*********
70-79 |***
60-69 |*****
0-59 |***
...press enter...
Grade Distribution
------------------
This program prints a bar graph showing the distribution of grades in a class.
By Mark Young (A00000000)
...press enter...
Enter the grades below, ending with a negative number:
-20
...press enter...
Distribution
80+ |
70-79 |
60-69 |
0-59 |
...press enter...
Grade Distribution
------------------
This program prints a bar graph showing the distribution of grades in a class.
By Mark Young (A00000000)
...press enter...
Enter the grades below, ending with a negative number:
57 86 63 40 87 68 82 78 80 60
71 84 51 63 59 65 64 47 74 87
80 64 83 73 66 58 72 38 62 62
57 61 85 77 85 80 77 77 77 60
66 60 75 76 84 69 59 76 41 86
64 63 91 73 66 87 74 72 61 68
41 58 75 68 80 77 82 75 68 85
73 78 53 91 48 68 85 70 74 53
67 68 55 56 65 71 75 70 66 66
79 71 73 77 69 72 61 73 38 59
-5
...press enter...
Distribution
80+ |********************
70-79 |*******************************
60-69 |******************************
0-59 |*******************
...press enter...
Return to assignment description