Tags:
tag this topic
create new tag
view all tags
---+Third lab: Grades ---++Learning Objective(s) 1. Understand loops 1. Be able to count things 1. Be able to compute an average ---++Overview of the program This lab does simple statistics about grades. ---++Specifics This lab needs to count distributions of letter grades and compute an average. A. The program should be called <b>Grades</b> A. Data inputted: * The data will be a series of grades (floating point allowed). * The number of grades inputted is not known. However any number <= -999 will signal the end of the input. * Any grade < 0 or > 100 is considered a bad grade and should not be included in the average A. What should be computed and outputted * The number of A,'s, B',s C', D', and F's should be computed and outputted. * F is < 60, * 60 <= D < 70 * 70 <= C < 80 * 80 <= B < 90 * 90 <= A <= 100 * The number of bad grades should be counted and outputted. * The average of all valid grades to be computed and outputted. A. Sample input <pre> 78.5 65.2 53 105 -5 95 -999 </pre> A. Sample Output <pre> 1 A 0 B 1 C 1 D 1 F 2 Bad Average is 72.925 </pre> ---++Submission 1. Create an empty zip folder. 1. Place your program (.java file) in it 1. Place your software development report in it. 1. Submit the zip folder on canvas ---++Optional improvements Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor. 1. Use a switch statement with at most 10 different values across all case statements
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2022-01-27
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback