This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: choice. b. Accept a choice c. Prompt the user for the inputs. d. Clear the screen and display the result as shown below in Figure 2. Turn in a hard copy of your algorithm and code listing, and an electronic copy of your code. Hint : Use a case statement to select the required function/ procedure from the package. Your Names Program to Implement Simple Math Functions 1. Add Two Numbers 2. Multiply Two Integers 3. Quit Please Enter Your Choice (1-3): Figure 1 : Menu Display If the numbers are First_Number and Second_Number , If the User Selects 1, the output should be: Adding First_Number and Second_Number: First_number + Second_Number = Sum If the User Selects 2, the output should be Multiplying First_Number and Second_Number: First_number * Second_Number = Sum Figure 2 : Displaying Outputs...
View Full Document
- Fall '05