Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use C++ For this lab you will be modifying the Calculator program from Chapter 4 of the textbox. For those of you who do
please use C++
For this lab you will be modifying the Calculator program from Chapter 4 of the textbox. For those of you who do not have the text, a version of the code is posted with this lab assignment. Note that this calculator program is not the same as the one from previous labs - it uses a series of functions. To complete the lab make the following modifications: a) ( ptr) Currently, the program just prints the answer to each of the user's problems. Change the output so that the program prints the whole problem as a mathematical expression. For example, if the user asks for the sum of 4.5 and 1.3, the program currently prints: answer-5.8 change it to print something like: 4.51.3-5.8 b) (2 ptrs) Add a subtraction operation to the calculator. c) (2 ptrs) Add an operation that calculates the surface area of a right circular cylinder. This d) (2 ptrs) Add an operation that calculates the volume of a right circular cylinder. This e) (2 ptrs) Add an operation that calculates the surface area of a right circular cone. This calculation should be done in a separate function, not in the main) function calculation should be done in a separate function, not in the mainO function calculation should be done in a separate function, not in the main) function. f) (1 ptr) As always add a comment block to the beginning of the program with your name, section number, date, and the lab number. Make sure your program is well indented, and comments should be used in the program to make your code easy to readStep 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