Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In C++: Write a program that performs addition, subtraction, multiplication, and

ID: 3815730 • Letter: I

Question

In C++:

Write a program that performs addition, subtraction, multiplication, and division. It should first ask the user to choose which operation they wish to perform, then prompts the user for two numbers. The program should pass the two numbers to one of the following functions, depending on which operation the user selects: addition(), subtraction(), multiplication(), division().

Constraints:

1) Make sure not to allow zero as the second input when performing division.

2) Use appropriate data types considering all kinds of the numeric values a user can input.

3) Precision – 2 decimal places.

Explanation / Answer

Below is the required code:-

Thank you.