Question: please typing (b) a Apply only the do-while, and switch flow control structure to write a program that produces the outputs corresponding to the relevant
please typing
(b) a Apply only the do-while, and switch flow control structure to write a program that produces the outputs corresponding to the relevant inputs as shown in Table Q3(b). If an invalid ID is entered, the program should request for a valid ID from the user. If the user enters an ID of 0, the program should terminate. Table Q3(b) Input: ID Number 1 2 3 Output: Name Peter John Cyrus (10 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
