Question: Assignment Requirements Write a C + + program which prompts the user to choose a calculator function ( opcode ) from the lists below. Prompt

Assignment Requirements
Write a C++ program which prompts the user to choose a calculator function (opcode) from the lists below.
Prompt to enter the correct number of operands for that choice, Ie. the "Add" function requires two numbers, Sqrt only one.
Display the equation to be calculated and the result in an easy-to-understand format.
Ask the user if they want to continue to select another function, if not say goodbye and exit.
Pre-check user inputs to insure they're legal for the requested function, Example for Div A/B, B must not be zero.
Display to the user any illegal inputs.
Decide whether to use integers or doubles.
Follow the comment standards and include our standard module header, and appropriate embedded comments
Use good programming practices, write readable, and understandable code.
Test all your functions and provide a screen print demonstrating each function working on at least three sets of data
Provide additional screen prints showing illegal operands being detected and flagged to the user.
Provide a link to the Replit session.
Hint - code - #include ; to use the functions: sqrt(), sin(), cos(), etc. and other math functions(See example below)
Table of Required Operations
Opcode -- Description
1-- Add
2-- Sub
3-- Divide
4-- Multiply
5-- Square-Root

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 Programming Questions!