homework5 - 5.4 1. This is an infinite loop, and the F in...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 5.4 1. This is an infinite loop, and the F in for should not be capitalized. 2. The switch cases are without break statements. 3. This is an infinite loop that will display odd integers greater than 19. 4. The variable counter is not defined, the W in the while statement should not be capitalized, and the number 100 will not be output 5.6 // *********************************************************************** // File: average.cpp // // Finding an average - User enters in a series of integers, and the program // outputs the average of that set of integer. // // Author: Benjamin Jones // Created: 3 February 2008 // Updated: Original // // Assignment: Homework 5.6 // Compiler: MinGW32 G++ 3.4.2 (GNU) // // Inputs: User inputs a series of integers, until the user inputs a // the value 9999. // // Contraints: The user must a enter an integer. // // Outputs: The program will display the message, "The average of the set is: // <average>" // // ********************************************************************* //...
View Full Document

This homework help was uploaded on 04/18/2008 for the course ECEE 120 taught by Professor Carter during the Winter '08 term at University of Cincinnati.

Page1 / 4

homework5 - 5.4 1. This is an infinite loop, and the F in...

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

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