Question: Can someone write pseudocode for this? (C++) Its for a burger vending machine scenario. Firstly, we shall decide what types of hamburgers we want to
Can someone write pseudocode for this? (C++) Its for a burger vending machine scenario.
Firstly, we shall decide what types of hamburgers we want to sell in the vending machine. I have listed a few of them below that we shall use for this example. You can add/delete as per your choice.
- Vegan burger
- Chicken Hamburger
- Mushroom Hamburger
- Turkey Hamburgers
- Cheese burgers
Once that we have listed the items that we shall sell through the vending machine, we shall move ahead with some exclusive and special ingredients that we can have for the customers. These items include but not limited to:
- Fresh herb compund butter
- Extra cheese
- Extra egg mayonnaise
- Special bread
- Special type of meat used in the hamburger
- Extra spices
- Some special types of sauces
Once we have the list of burgers that we want to sell and the customization available with us, we shall move ahead.
As an additon, we can even add options of multiple languages in the vending machine.
The vending machine shall start with a welcome message and ask the user to enter his/her preffered language.
Once the user has selected the language, the page should be navigated to the list of burgers that are available within the machine.
Also a there should be a prompt that would ask the user to select from the list of available burgers. If the burger that user wants is present in the list, he shall move ahead else he can exit the transaction by giving a feedback after which the thank you page shall be displayed. Considering that the burger that the user wants is available within the vending machine,
After the user selects the hamburger, the next screen shall be customization screen. If the user wants the default burger and no other customization, the payment page should be displayed. But if the user says he wants some customization, then the list of customization shall be displayed. Later on, the user shall be redirected to the payments page. After completion of payment, an approx wait time shall be displayed for the burger to get ready and then the thank you page shall be displayed.
Exclusive part:
Care should be taken to display the customization on the basis of the burger that the user has selected. Meaning, if the user has selected vegan burger, customizations such as egg mayonnaise, meat, etc should not be displayed in the customization list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
