Question: Question #1: (15 marks) a) Write a C++ program that displays a welcome message along with a menu to the user. (3 marks) Welcome to

Question #1: (15 marks) a) Write a C++ program that displays a welcome message along with a menu to the user. (3 marks) Welcome to ACK Vending Machine Please Pick a Choice Choose A for Tea Price: K.D. 1 Choose B for Coffee Price: K.D. 2 Choose C for Cafe Latte Price: K.D. 2.5 Choose D for Cappuccino Price: K.D. 2.75 Choose X to Exit b) The program then prompts the user to enter a choice as per the menu displayed. (1 marks) c) The user is allowed to enter his/her choice in capital or small letter. (2 marks) d) Only if the user enters a valid choice, the program will prompt him/her to enter how many cups he/she wants. (2 marks) e) The program will then display the choice of beverage the user has picked along with his/her current bill. (3 marks) f) The program will keep on starting over and asking the user about his/her next choice, unless the user chooses to exit. (3 marks) g) Once the user chooses to exit, the program will display his total bill. (1 mark) End of Assessment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
