This preview shows page 1. Sign up to view the full content.
Unformatted text preview: should read-in a value for the radius and display the calculated values with appropriate units. The units should also be read-in. Test your program for r = 5 in and r = 12 mm. 7. Will perform a specied operation (addition, subtraction, multiplication, division) as input by the user for two variables also input by the user. Hint: Operation characters can be entered as character strings. The end result of your program should look some-thing like below >> operation Enter first variable: 5 Enter second variable: 4 Enter operation to be used [+,-,*,/]: + Result: 5+4 = 9 Test your program for a = 3 and b = 2 for all four operations....
View Full Document
- Spring '07