Assignment_17-1 - Combining While Loops and If Statements...

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: Combining While Loops and If Statements Write a program that reads a series of numbers (doubles) from the user, then prints the mean and the range. Notes: • • • • Sample sessions: You do not know ahead of time how many numbers will be in the list. When you want to stop entering numbers, enter control‐Z. The range is the difference between the lowest and the highest number. The numbers will be in the range of 0.0 to 100.0. Ignore any numbers outside of this range. ...
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.

Ask a homework question - tutors are online