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, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
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.07.2019 05:50