Lab 9 Solution

$30.00 $24.00

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 >>…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:
Tags:

Description

5/5 – (2 votes)

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…)

Lab 9 Solution
$30.00 $24.00