Write the following program the user is asked to enter 2


Write the following program: The user is asked to enter 2 floating point numbers (use doubles). The user is then asked to enter one of the following mathematical symbols: +, -, *, or /. The program computes the answer on the two numbers the user entered and prints the results. If the user enters an invalid symbol, the program should print nothing. Example of program: Enter a double value: 7 Enter a second double value: 5 Enter one of the following: +, -, *, or /: * 7 * 5 is 35 Hint: You can check if the user has entered a plus symbol using an if statement, covered in section 2.6 -- Boolean values.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write the following program the user is asked to enter 2
Reference No:- TGS01145469

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)