Question: Write a program that prompts the user to enter the position of an object (an integer number) and the move type, the program uses the
Write a program that prompts the user to enter the position of an object (an integer number) and the move type, the program uses the switch statement to find and print the new position according to the following:
| Move Type | Number of Move Units |
| 1, 2 3, 4 5 6, 7, 8 9, 10 | No move at all 9 units to the right 12 units to the left 1 unit to the right 2 units to the left |
Note (using c++)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
