1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.
2) Design a class called SavingsAccount that stores an annual interest rate and an initial balance in someone's account. Have the constructor accept an amount for the starting balance. Construct methods to handle withdrawals, deposits, and adding the monthly interest rate to the balance.
Write a program that will test the functionality of this class by having the program calculate the balance of an account at the end of each month. Have the program prompt the user for the starting balance, annual interest rate, and the number of months that have passed since the account was established. A loop should then iterate once every month, performing the following:
(a) Ask the user for the amount deposited to the account during the month. 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 month. Use the class method to subtract this amount to the account balance.
(c) Use the class method to calculate the monthly interest amount to the account balance.