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 easytounderstand format.
Ask the user if they want to continue to select another function, if not say goodbye and exit.
Precheck user inputs to insure they're legal for the requested function, Example for Div AB 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 functionsSee example below
Table of Required Operations
Opcode Description
Add
Sub
Divide
Multiply
SquareRoot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
