Question
C++ Answers Only You are to write a simple calculator that will perform basic arithmetic operations on two doubles. 1. Your calculator should handle arithmetic
C++ Answers Only
You are to write a simple calculator that will perform basic arithmetic operations on two doubles.
1. Your calculator should handle arithmetic operation of two doubles that adhere to the following form:
2. Your calculator should prompt the user to inquire for an additional calculation or to quit. This process should repeat until the user agrees to quit.
3. Your program should contain the following functions (note exact spelling is required):
add()
Takes in two doubles and returns the sum of the two doubles.
subtract()
Takes in two doubles and returns the first double minus the second.
multiply()
Takes in two doubles and returns the product of the two doubles.
divide()
Takes in two doubles and returns the first double divided by the second.
getInput()
Responsible for getting the input from the user. Should prompt the users for two doubles and a char in the form
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