Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!