Starting from:
$35

$29

Lab 9 Solution

Description:  Page 603, number 6 – calculating students grades
    
The data file is called lab9data.txt in the folder on the S drive.
Some Considerations:
    • The number of students is unknown, how do we know when to end?
Hint: You can actually use a cin statement as the expression that controls a loop
while( cin >> variable)
If cin works, it evaluates as true, if not, it evaluates as false
    • Where do we store the correct answers?
    • Where do we store the students answers?
    • An answer may be blank, how should we read in the values?


Your results should look like this: (it doesn’t have to be blue…)

More products