The instruction is in the attachment. Make sure is your own work!!
Beverage Dispenser
Class Discussion on Assignment 9 (Video)
Create a Beverage Dispenser using the requirements shown in the following video. Your design
should use Object Oriented Programming and Collections (with generics). Try to include
condiment handling and paper cups in the dispenser. Your design will be complete if you use
collections for coffee beans used for each cup of coffee, paper cups, condiments like sugar,
splenda, cream, etc.
To provide help on design please take a look at this picture drawn in class.
Use Object Oriented Design, Swing Programming and Collections for implementing this
assignments.
Please be sure to submit a class diagram for this lab.
Submitting your work (15 Points)
Before submitting your work, please reflect on following points:
1.
2.
3.
4.
5.
6.
7.
No errors, program always works correctly and meets the specification(s) (2 points).
The code could be reused as a whole or each routine could be reused (2 points).
Concepts of Collections, Swing Proramming and OOD are applied. (7 points)
Need to follow Java coding conventions (1 points).
Code Readability (as suggested in class) (1 points).
Adequately tested (unique test cases, covering boundary conditions) (1 points).
Class diagram is provided (UML usage is not required) (1 points).
Class Diagrams
•
•
•
•
You are not expected to learn UML to provide class diagrams.
A schematic like this one will suffice.
Make sure each class has name, properties and methods
Each class should show its relationship with other classes – namely Association, Encapsulation, Inheritance, Polymorphism or Containment. You
can define your own legend for showing the visualization.
You must design before construction. No other way of implantation is
acceptable.
Class Name
•
Properties with details on
modifiers and datatype
• Reference for formal learning:
Methods – complete
signature with return type
and all modifiers.
Constructor – does not
have a return type
Getter
Setter
Business Methods –
like find, update etc.
Example legend
containment
association
extends
Class Name
Class Name
Properties with details on
modifiers and datatype
Methods – complete
signature with return type
and all modifiers.
Constructor – does not
have a return type
Getter
Setter
Business Methods –
like find, update etc.
Properties with details on
modifiers and datatype
Methods – complete
signature with return type
and all modifiers.
Constructor – does not
have a return type
Getter
Setter
Business Methods –
like find, update etc.
Class Name
Properties with details
on modifiers and
datatype
Methods – complete
signature with return
type and all modifiers.
Constructor –
does not have
a return type
Getter
Setter
Business
Methods – like
find, update
etc.
Features
Beverage Types
Beu
c
Lo
Joy
Coffee types
i
->
–
7 HW
Mix two types of Coffee s
Condiments
the Beans Water
Dispenser
160
Show Ben L
>
olů
Dispensing process
Dispense Beurs
Cup
3 Cups
> Sizes
> User Interface