subject

. You will develop an Algorithm and a C++ program for a mini calculator problem described below: a. Write a program that prompts the user to enter an equation in the form of 10+5, or 10-5, or 1*5, or 13/4, or 13%4. The program should then output the equation, followed by an equal sign, and followed by the answer (Refer to steps d and e below for sample output displays and algorithm) b. The program should read in the equation by reading in three values: a double and a character (*,+,-,/,%) and then another double. Because of the nature of cin >>, it won’t matter if they enter a space around the character or not (Refer to step 5eii. below for cin >> statement) c. The character they enter will be one of the following: +, -, *, % or /. I. The program should do addition, subtraction, multiplication or division. II. Make sure and test division by zero III. Make sure and CHANGE the numbers to INTEGER before attempting the %. d. Other than the data inputted, your output should look EXACTLY as follows: NOTE: ✓ The items shown after the colon are what YOU enter as input; those items can vary. ✓ The spaces don’t matter when you input the equation ✓ The tables below show several different sample runs for you to compare:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:30
The source manager dialog box allows you to create sources, copy sources created and used in all the documents, modify sources an add bibliographic information to placeholders. true or false
Answers: 2
question
Computers and Technology, 21.06.2019 23:30
Me2540 week 5 assignment what do i want to know?
Answers: 1
question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
You know the right answer?
. You will develop an Algorithm and a C++ program for a mini calculator problem described below: a....
Questions
question
Mathematics, 09.09.2020 16:01
question
Mathematics, 09.09.2020 16:01
question
Mathematics, 09.09.2020 16:01
question
Spanish, 09.09.2020 16:01
question
Mathematics, 09.09.2020 16:01
Questions on the website: 13722367