Sure, let's break down the requirements for the interactive program for Sanderson's Ice Cream Sundaes!
Wireframes and Storyboard:
- Start with a main screen showing the options for choosing the number of scoops (1, 2, or 3) and the primary flavor (chocolate, strawberry, or vanilla).
- Add checkboxes or buttons for the additional toppings (nuts, whipped cream, cherries).
- Include an "Order Now" button at the bottom of the screen.
- After the customer clicks "Order Now," display a confirmation screen with the selected options and the total price.
Interactivity Diagram:
1. Customer selects the number of scoops and the primary flavor.
2. Customer can choose to add nuts, whipped cream, or cherries.
3. Customer clicks the "Order Now" button.
4. Program calculates the total price based on the selected options.
5. Program displays the confirmation screen with the selected options and the total price.
Object Dictionary:
- Scoop: Represents a single scoop of ice cream.
- Flavor: Represents the primary flavor of the sundae.
- Topping: Represents the additional toppings (nuts, whipped cream, cherries).
- Order: Represents the customer's order, including the number of scoops, flavor, and toppings.
- Price: Represents the total price of the order.
Necessary Scripts:
- Use JavaScript or a similar programming language to handle the user's selections and calculate the total price.
- Create functions to update the price based on the selected options.
- Use event listeners to detect when the "Order Now" button is clicked and display the confirmation screen.
I hope this helps you with your homework! Let me know if you have any more questions or need further assistance.