Question: This Code is to be done in C++ Lab 5- Simple Loops Problem 1- Simple Calculator (10O points) Write a program that asks the user

 This Code is to be done in C++ Lab 5- Simple

This Code is to be done in C++

Lab 5- Simple Loops Problem 1- Simple Calculator (10O points) Write a program that asks the user to input two float numbers and an operation (e.g. +,-, *,/) to be performed on the given values. Based on the provided input, the program should output the result of the expression. The program should validate that the provided operation is correct (e.g. use a do-while loop) and should continue execution until the user chooses to stop (e.g. use a do-while loop). Example: Please input input expression: 5.67.8 Result of expression is 5.6 + 7.8 = 13.4 Would you like to evaluate another expression (Y/N)? y Please input expression 5.6 @ 7.8 ERROR: Unknown operation@ Please input expression: 5.6-7.8 Result of expression is: 5.6-7.8 =-1.2 Would you like to evaluate another expression (Y/N)? n HINT: To obtain an expression, read a float number, then read character, and then read the second float

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!