Create a program that will do the following: (Solution should be a combination of if or if-else or nested if and Switch Cases). Press 1 to ADD Press 2 to Subtract Press 3 to Multiply Press 4 to Divide...


Create a program that will do the following: (Solution should be a combination of if or if-else or nested if and Switch Cases).



Press 1 to ADD


Press 2 to Subtract


Press 3 to Multiply


Press 4 to Divide


Enter Option Here: ___


Enter First Number: ___


Enter Second Number: ___


Output: ___



Note:



  1. Dividing with zero is not possible.

  2. Pressing other character, display “Invalid Operation”, then end the program.

  3. First Number, second number and the output can be a floating value.

  4. Round-off the output in 3 decimal places.

  5. You may add other possibilities to make the program better.



6.<br>Create a program that will do the following: (Solution should be a combination ofif or if-<br>else or nested if and Switch Cases).<br>Press 1 to ADD<br>Press 2 to Subtract<br>Press 3 to Multiply<br>Press 4 to Divide<br>Enter Option Here:<br>Enter First Number:<br>Enter Second Number:<br>Output:<br>Note:<br>A. Dividing with zero is not pos sible.<br>B. Pressing other character, display

Extracted text: 6. Create a program that will do the following: (Solution should be a combination ofif or if- else or nested if and Switch Cases). Press 1 to ADD Press 2 to Subtract Press 3 to Multiply Press 4 to Divide Enter Option Here: Enter First Number: Enter Second Number: Output: Note: A. Dividing with zero is not pos sible. B. Pressing other character, display "Invalid Operation", then end the program. C. First Number, second number and the output can be a floating value. D. Round-off the output in 3 decimal places. E. You may add other pos sibilities to make the program better. Ac

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here