Assignment_28 - #include <iostream> using namespace...

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

View Full Document Right Arrow Icon
Assignment 28 One dimensional arrays of integers Write a program that prompts the user for test scores (doubles). The user enters -1 to stop the entry. After all of the test scores have been entered, calculate the average, the highest and the lowest test score. Use the code below as a template. Make sure you respond appropriately when no test scores are entered. Use the following screen shots as a guide.
Background image of page 1

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

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

Unformatted text preview: #include <iostream> using namespace std; int main() { double scores[75]; int counter = -1; do { counter++; cout << "Please enter a score (enter -1 to stop): " ; cin >> scores[counter]; } while (scores[counter] >= 0); // CALCULATE AND DISPLAY THE AVERAGE // THE HIGHEST AND LOWEST TEST SCORE // BELOW HERE -- DO NOT MODIFY THE REST OF // PROGRAM EXCEPT TO PUT YOUR NAME ETC. // AT THE TOP. }...
View Full Document

This note was uploaded on 01/11/2010 for the course CMPSC 101 taught by Professor Drobish,renee during the Summer '07 term at Pennsylvania State University, University Park.

Page1 / 2

Assignment_28 - #include <iostream> using namespace...

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