Question
Concessions: Water $0.50, Candy Bars $1.00, Popcorn $0.25, Soda $0.75. Fifth graders operate the concessions, and the software calculates the total of purchases. The software
Concessions: Water $0.50, Candy Bars $1.00, Popcorn $0.25, Soda $0.75.
Fifth graders operate the concessions, and the software calculates the total of purchases. The software shall ask the operator for the quantity of each item the customer desires to purchase. The software shall calculate the total cost of the requested concessions. The software shall communicate the total cost to the operator, who will tell the customer and collect the payment. For example, if someone purchases 2 waters, 4 candy bars, 4 popcorns, and 2 sodas, the software computes a total cost of $7.50. The software shall track additional cash donations made by customers. For example, a customer may pay $10.00 for $7.50 worth of concessions and say keep the change the software shall track the $2.50 received as a donation. At the end of the movie night, the software shall provide reports with the total funds raises, the total quantity of each item sold, the total sales, and the total donations.
Create a UML class diagram based on this scenario to include fields, methods, and relationships
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started