Answered step by step
Verified Expert Solution
Link Copied!

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. (5%)(Smart Saver and Checking Account) The Smart Access Account class you created in week 10 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 10 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 0 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 (i.e., meeting different withdrawal constraints respectively). Display account status
after each transaction using the toString() method. Topic 2: Java OOP (10%)
(5%)(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 List180mins
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

2. What are the components of IT infrastructure?

Answered: 1 week ago