Question: !!!!!WRITE IN C PLEASE!!!!!!! Use IF ELSE ELSEIF and/or switches If possible please show the planning going into the code and give explaination of why

!!!!!WRITE IN C PLEASE!!!!!!!

Use IF ELSE ELSEIF and/or switches

If possible please show the planning going into the code and give explaination of why you did stuff a certain way.

Write a calculator program. Your calculator should provide at least four functions. In the following example, weve implemented addition, subtraction, multiplication, and division. The program will ask the user to enter a number, enter a symbol to indicate which function (+, -, *, or /), and then enter the second number in the equation. The calculator should take FLOATING POINT numbers as input and output. Therefore, all of your numbers you store in memory (input and output) will be float or double (your choice).

Consider the following example:

The Simple Calculator

Enter your first number: 28

Enter an operator (+, -, *, or /): /

Enter your second number: 4

The result of 28.0000 / 4.0000 is 7.0000

BONUS (5): Implement three advanced math functions, such as sine, power, etc. Lookup the functions available in math.h. Youll need to add an import statement for math.h to use these functions.

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