Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an ADT named Circle : Include data: radius (double) PI (a constant double initialized with 3.14159) Include methods: A no-argument constructor A constructor that

Write an ADT named Circle:

Include data:

radius (double)

PI (a constant double initialized with 3.14159)

Include methods:

A no-argument constructor

A constructor that sets the data to passed values

Getters and setters for each piece of data

getArea (PI * radius * radius try using a Math method here)

getDiameter (radius * 2)

getCircumference (2 * PI * radius)

A toString( ) method to display the object data

Include Javadoc comments for the class and every method, and generate the Javadoc/API

Create a separate Java application to unit test this class (zyBook section 6.6) by creating 3 objects: create one using the default constructor, and create the other two using radius values you get as input from the user.

Write an ADT named BankCharges:

Include data:

beginning balance

number of checks written

Include all necessary/basic methods, plus a method to calculate and return the banks service fees for the month. The bank charges $10 per month, an additional $15 extra if the balance falls below $400, plus the following check fees:

.10 each for less than 20 checks

.08 each for 20-39 checks

.06 each for 40-59 checks

.04 each for 60 or more checks

Include Javadoc comments for the class and every method, and generate the Javadoc/API

Create a separate Java application to unit test this class (zyBook section 6.6) by creating 2 objects. Ask the user to input the beginning balance and number of checks written values, then use those values to instantiate your objects. Make sure to test all of the check fee amounts (hint: use the set method to change the number of checks written and then call service fee calculation method).

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

2. Discuss the steps in preparing a manager to go overseas.

Answered: 1 week ago