Question
Please do this in C++ using functions. Design a calculator that performs four operations: addition, multiplication, division and subtraction with 2 integer type numbers. a)
Please do this in C++ using functions. Design a calculator that performs four operations: addition, multiplication, division and subtraction with 2 integer type numbers. a) Define 4 functions to perform addition, multiplication, division and subtraction with appropriate function name ( using function is a must) b) Ask user what type of operation to perform (+, - , * or /) a. If t he user inputs none then the program terminates. Otherwise it will keep continuing the calculation. (hint: use while) c) Ask user to provide 2 integer number inputs d) Perform operation (whatev er operation they mentioned in by the user ) e) Print result f) In divisio n operation, perform a check if the denominator is a 0. If it is 0, then print a message that denominator cannot be 0 while performing a division operation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started