(b) Write a program that let user to key in two integer numbers and perform calculation by selecting one of the math's operators (+, -, * and /) as shown in Figure 1.1. *Note: any number divided by...


(b)<br>Write a program that let user to key in two integer numbers and perform<br>calculation by selecting one of the math's operators (+, -, * and /) as shown in<br>Figure 1.1. *Note: any number divided by zero is invalid.<br>Key in two numbers: 10 10<br>1. +<br>2.<br>3.<br>4./<br>Select operator: 1<br>Key in two numbers: 57<br>1. +<br>2. -<br>3. *<br>4. /<br>Select operator: 2<br>10 + 10 = 20<br>5- 7 = -2<br>Key in two numbers: 14 25<br>1. +<br>2. -<br>3. *<br>4. /<br>Select operator: 3<br>Key in two numbers: 9 0<br>1. +<br>2. -<br>3. *<br>4. /<br>Select operator: 4<br>Invalid operation!<br>14 25 = 350<br>Figure 1.1: Four sample outputs of basic mathematical operations<br>

Extracted text: (b) Write a program that let user to key in two integer numbers and perform calculation by selecting one of the math's operators (+, -, * and /) as shown in Figure 1.1. *Note: any number divided by zero is invalid. Key in two numbers: 10 10 1. + 2. 3. 4./ Select operator: 1 Key in two numbers: 57 1. + 2. - 3. * 4. / Select operator: 2 10 + 10 = 20 5- 7 = -2 Key in two numbers: 14 25 1. + 2. - 3. * 4. / Select operator: 3 Key in two numbers: 9 0 1. + 2. - 3. * 4. / Select operator: 4 Invalid operation! 14 25 = 350 Figure 1.1: Four sample outputs of basic mathematical operations

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here