In Class Exercise 3

In Class Exercise 3 - Group Members: CS 171 In Class...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 171 In Class Exercise 3 Group Members: (20 pts) Correct all the errors in the following code. #include<string> void main(); { float average; int sum = 0; count = 0; number; string label = ″The average is: ; cout >> ″Enter 10 numbers for an average calculation: ; for (int i = 1, i < 10, i++) { cin >> number sum += number; ++count }; average = float(sum / count); cout >> string , average >> endl; };
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 171 Quiz 3 Group Members: (20 pts) Correct all the errors in the following code. #include<string> { float average; int sum = 0; count = 0; number; string label = ″The average is: ; cout >> ″Enter 10 numbers for an average calculation: ; for (int i = 1, i < 10, i++) {
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/28/2011 for the course CS 171 taught by Professor Ravi during the Spring '11 term at Minnesota.

Page1 / 3

In Class Exercise 3 - Group Members: CS 171 In Class...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online