1) TestScore Class: Design a TestScores class that has fields to hold three test scores. The class should have a constructor, that accepts three test scores, accessor and mutator methods for test score fields, and a method that returns the average of the test scores. Demonstrate the class by writing a separate program that creates an instance of the class. The program should ask the user to enter three test scores, and then they are stored in a TestScores object. Then the program should display the average of the scores, as reported by the TestScores object.

2) Problem #12 in page 400 of your text (6th edition): Savings Account Class.

Design a Savings Account class that stores a savings account's annual interest rate and balance. The class constructor should accept the amount of the savings account's starting balance. The class should also have methods for subtracting the amount of a withdrawal, adding the amount of a deposit, and adding the amount of monthly interest to the balance. The monthly interest rate is the annual interest divided by twelve. To add the monthly interest rate to the balance, multiply the monthly interest rate by the balance, and add the result to the balance.

Test the class in a program that calculates the balance of a savings account at the end of a period of time. It should ask the user for the annual interest rate, the staring balance, and the number of months that have passed since the account was established. A loop should then iterate once for every month, performing the following:

a) Ask the user for the amount deposited into the account during the months. Use the class method to add this amount to the account balance.

b) Ask the user for the amount withdrawn from the account during the months. Use the class method to subtract this amount from the account balance.

c) Use the class method to calculate the monthly interest.

After the last iteration, the program should display the ending balance, the total amount of deposits, the total amount of withdrawals, and the total interest earned.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.