You need to write a command-line program that asks the employee how many adults, teenagers, and children will be attending the event. The program should then calculate how many soft drinks, glasses of champagne, slices of pizza, and pieces of cake are needed for the event. You must determine on your own what you think a reasonable amount of each of these should be for each type of guest. Note that you may need to defend your determination with your lab group. The program should then present to the employee how much of each item they should buy and bring on board for the event.
You need to write a command-line program that asks the employee how many adults, teenagers, and children will be attending the event. The program should then calculate how many soft drinks, glasses of champagne, slices of pizza, and pieces of cake are needed for the event. You must determine on your own what you think a reasonable amount of each of these should be for each type of guest. Note that you may need to defend your determination with your lab group. The program should then present to the employee how much of each item they should buy and bring on board for the event.
Here considered as follows:
adult - 4 slices of pizza,1 piece of cake, 1 glass of champagne
teenagers - 3 slices of pizza,1 piece of cake, 1 glass of soft drink
children - 2 slices of pizza,1 piece of cake, 1 glass of soft drink
Also, I have added 5 items per group for precaution.
Step by step
Solved in 3 steps with 1 images