Question: Can you help me answer the follwoing c programming question asap please? You are to use Visual Studio to write a simple desktop calculator. The
Can you help me answer the follwoing c programming question asap please?
You are to use Visual Studio to write a simple desktop calculator. The program will:
Read a floating point number, Read an operator (+, -, *, /, %)
Read a second floating point number
Check for error conditions such as a missing or unknown operator, division by zero, modulus by zero or trying to do modulus on non-integral values
Print either an error message or the result of the calculation and then terminate
If the result of the calculation is an integer,
it should be printed with no places after the decimal. The user might leave zero or one spaces between the numbers and the operator. Your program will need to read the input carefully to handle these situations. Your program should produce output similar to this (input shown in bold): 3+ 7 10
You should submit:
A program calculator.c that runs on Visual Studio,
A file reflect.txt that answers the reflections below
Reflections
1. Describe the decision structure you used to perform the calculation for the different operators. Why did you pick this decision structure over the competing ones?
2.How did you determine if the numbers you read were integers or floating point? Describe your technique in detail.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
