This preview shows page 1. Sign up to view the full content.
Unformatted text preview: as robust as possible, though; try giving text like "hi there" when asked for a radius. Input User will supply one number, when prompted, to tell which computation is desired (in this case, 0, 1, or 2 is needed). Then, when prompted, the use will give a second number. .. the radius of the circle (units are not important and the radius can be a real number). We also show use of Number() to convert text to numeric data. Output The program will print to the screen the value (either area or circumference). Termination To end the program the user should give number "0" when selecting a conversion....
View Full Document
This note was uploaded on 11/30/2009 for the course COMP 110 taught by Professor Stotts during the Spring '08 term at UNC.
- Spring '08