Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 (25 points) Ask the user to enter two real numbers. Then display the following menu on the screen: 1. Addition 2. Subtraction 3.

image text in transcribed

Question 2 (25 points) Ask the user to enter two real numbers. Then display the following menu on the screen: 1. Addition 2. Subtraction 3. Multiplication 4. Division Chocie: If the user enters 1 then add the two numbers and display Result of addition = .... "on the screen. If the user enters 2 then subtract the second number from the first number and display "Result of subtraction = .... on the screen. If the user enters 3 then multiply the two numbers and display "Result of multiplication = .... on the screen. If the user enters 4 then divide the first number by the second number and display "Result of division = .... "on the screen. Use while loop and switch statement in your program. In the while loop ask the user "Do you want to continue?". If the user answers "Yes" (or "Y" or "Y") display the menu again otherwise exit the loop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

1. Explain the 2nd world war. 2. Who is the father of history?

Answered: 1 week ago