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 bank's 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:
- $0.10 each for less than 20 checks
- $0.08 each for 20-39 checks
- $0.06 each for 40-59 checks
- $0.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 the service fee calculation method).