Question
Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user. your program design should contain the following: the
Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user. your program design should contain the following: the main menu of your program is to continue to prompt the user for an arithmetic choice until the user enters a sentinel value to quit the calculator program. when the user chooses an arithmetic operation (i.e. addition) the operation is to continue to be performed (i.e. prompting the user for each number, displaying the result, prompting the user to add two more different numbers) until the user enters a sentinel value to end the chosen arithmetic operation. if the user chooses division, do not allow the user to divide by 0. display an error message to user and ask the user to choose another denominator. you are to submit the following for the task: submit your c++ source code that you generated from raptor with comments added to each line or where necessary to explain program flow. also submit the raptor file (flowchart) of your working program. make sure you run it to make sure it is error free and does what it is supposed to. you can use the generate dropdown to create example c++ code based on your working logical flow chart to see what the code would look like.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started