Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task: Draw and attach a UML class diagram capturing the classess and the relationship between the classes using an appropriate modeling tool. Then implement these
Task: Draw and attach a UML class diagram capturing the classess and the relationship between the classes
using an appropriate modeling tool. Then implement these two classes and use the following flight itinerary
tracker test program to use these classes. Smart Saver and Checking Account The Smart Access Account class you created in week lab task
was defined to model an everyday bank account. The account has the properties of account number,
balance, annual interest rate, and date created, and methods to deposit and withdraw funds etc.
Task:
Extend the Account class created in week lab to two subclasses SaverAccount and CheckingAccount
using class inheritance.
The differences of those account are: i the saver account cannot be overdrawn so balance can't go
below or negative after a withdrawal transaction whereas ii the checking account has an overdraft limit
Design and draw the UML diagram for the classes and try to implement them.
Finally, write your own test program that creates objects of Account, SavingsAccount, and
CheckingAccount and invokes their different withdraw methods to see if saving and checking accounts
are working correctly ie meeting different withdrawal constraints respectively Display account status
after each transaction using the toString method. Topic : Java OOP
Flight itinerary tracker For this application, you will need to design two classes, namely, Flight and
Itinerary. You should also check out the GregorianCalendar class in Java API to see how to use it The Flight
class models and stores the information about a flight with the following members attributes and methods:
A data field named flightNo of the String type with getter method.
A data field named departureTime of the GregorianCalendar type with getter and setter methods.
A data field named arrivalTime of the GregorianCalendar type with getter and setter methods.
A constructor that creates a Flight with the specified number, departureTime, and arrivalTime.
A method named getFlightTime that returns the flight time in minutes.
The Itinerary class stores the information about itinerary with the following members:
A data field named flgihts of the Listmins
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