Sketch a flowchart for a program that will perform like a calculator involving operators add, subtract, multiply and divide: a. Prompt the users to enter desired operator of char type (add, subtract,...


Sketch a flowchart for a program that will<br>perform like a calculator involving operators<br>add, subtract, multiply and divide:<br>a. Prompt the users to enter desired<br>operator of char type (add, subtract,<br>multiply and divide)<br>b. Prompt the users to enter two inputs of<br>numbers<br>c. Use switch-case statements to check the<br>entered input<br>i. If the user enters +, addition is<br>performed on the numbers.<br>ii. If the user enters -, subtraction is<br>performed on the numbers.<br>iii. If the user enters *, multiplication<br>is performed on the numbers.<br>iv. If the user enters /, division is<br>performed on the numbers.<br>v. If the user enters other<br>character, print out error message<br>d. For the output, display >> the two<br>numbers, the operator, the result.<br>e. Loop using the Do-While until user<br>decides to stop.<br>any<br>||<br>

Extracted text: Sketch a flowchart for a program that will perform like a calculator involving operators add, subtract, multiply and divide: a. Prompt the users to enter desired operator of char type (add, subtract, multiply and divide) b. Prompt the users to enter two inputs of numbers c. Use switch-case statements to check the entered input i. If the user enters +, addition is performed on the numbers. ii. If the user enters -, subtraction is performed on the numbers. iii. If the user enters *, multiplication is performed on the numbers. iv. If the user enters /, division is performed on the numbers. v. If the user enters other character, print out error message d. For the output, display >> the two numbers, the operator, the result. e. Loop using the Do-While until user decides to stop. any ||

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here