Posted: November 10th, 2015
Java UML Diagram
Exercise 1 – A UML diagram for a Bank Account Class In this exercise you will create a UML diagram for a
class of objects to keep track of bank accounts. Design a class named Account that contains: • A private int
property named id for the account (default 0).
• A private double property named balance for the account (default 0).
• A private property of type date named date Created that stores the date when the account was originally
created.
• A constructor without parameters that creates a default account.
• A constructor that creates an account with the specified id and initial balance.
• The accessor and mutator methods for id and balance.
• The accessor method for date Created.
• A method named withdraw that withdraws a specified amount from the account.
• A method named deposit that deposits a specified amount to the account. Draw a UML diagram for the class.
Exercise 2 – designing Your Own Class Design a class of objects to keep track of any one of the things listed
below. For the object you choose, write a paragraph describing the data that needs to be stored for the
object, and a paragraph listing what the methods for the object need to do. Create an annotated UML diagram
that shows appropriate properties and methods for the object.
ï‚· houses for a real estate broker
ï‚· sales for a real estate broker
ï‚· insurance policies for a real estate insurance company
ï‚· animals in a zoo
ï‚· feedings for animals in a zoo
ï‚· cars for a car dealership
ï‚· sales for a car dealership
ï‚· the sales staff for a car dealership
ï‚· players in a monopoly game
ï‚· property in a monopoly game
ï‚· patients in a hospital
ï‚· doctors in a hospital
ï‚· procedures in a hospital
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET A GOOD DISCOUNT 🙂
Place an order in 3 easy steps. Takes less than 5 mins.