Question: Pack Selection: Prompt the user to choose between a 4 - pack or a 6 - pack of cupcakes. Ensure the user's choice is valid.

Pack Selection:
Prompt the user to choose between a 4-pack or a 6-pack of cupcakes.
Ensure the user's choice is valid. If not, prompt them again.
Cupcake Menu:
Display a menu with these 4 cupcake flavors and their respective prices:
Vanilla Delight: $2.50
Chocolate Dream: $3.00
Strawberry Bliss: $2.75
Caramel Drizzle: $3.50
Cupcake Selection:
Prompt the user to select a flavor from the menu to add to their pack. Ensure the user's choice is valid. If not, prompt them again.
Repeat the process until the chosen pack (4 or 6) is full.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!