Computers and Technology

. 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:

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, kelseybell5522
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, jinkiesandrosie
Game design colleges anyone know the requirements? ?
Answers: 1
image
Computers and Technology, 25.06.2019 05:30, TheViperMlg23676
The piston ring isn't a completely solid ring; instead, it's usually split at one point. this split or gap in the ring is called the a. ring spacing. b. ring clearance. c. ring end gap. d. ring side clearance.
Answers: 2
image
Computers and Technology, 25.06.2019 06:00, xxaizuwu
Me on this app how do you take a picture of your work
Answers: 1
Do you know the correct answer?
. You will develop an Algorithm and a C++ program for a mini calculator problem described below: a....

Questions in other subjects:

Konu
Mathematics, 16.03.2020 17:38