Question: 1. Make a calculator program consisting of addition, subtraction, multiplication, and division between 2 user-input numbers. The program should display the instruction and fully utilize

1. Make a calculator program consisting of addition, subtraction, multiplication, and division between 2 user-input numbers. The program should display the instruction and fully utilize the usage of pointer. C\Users\FAID) Desktop Teaching and Leaming Session 2020 2021 Sem 1\Computer Programming (BITG 12231407. Assignment Questi. Calculator program: +: Add - Subtract *: Multiply /: Divide Enter first number: 5 Enter second number: 3 Enter operation: / fperation display: 5/3 = 1.66667 Do you want to repeat the whole processi (Y/N): Y calculator program: + Add - Subtract *: Multiply 1: Divide Enter first number: 8 Enter second number: 9 Enter operation: Aperation display: 8.9.-1 Do you want to repeat the whole process? (VN): n. process exited after 34.72 seconds with return value o Press any key to continue. Figure 1: Sample output of a calculator program (2.5 marks) 2. Write an excerpt of a program as well as draw diagram to represent the execution of swapping between the first number and the second number using pointer. (2.5 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
