Question: Solve problem one and two. Add detailed comments. Problem 1: Create a program to calculate interest rate and total balance - the program consists of

Solve problem one and two. Add detailed comments.

Solve problem one and two. Add detailed comments. Problem 1: Create a

Problem 1: Create a program to calculate interest rate and total balance - the program consists of (a) A class that encapsulates the interest rate and total balance calculation Constructor should accept initial balance and interest rate Methods: Returns interest amount o Returns total balance o Set interest rate o Set initial balance (b) A test program that uses class from step (A) to perform the following: Set interest rate to 5% and initial balance to 1000 Print interest amount and total balance Increase interest rate to 10% Print interest amount and total balance Increase initial balance to 2000 Print interest amount and total balance Problem 2: Create a program that calculates area and perimeter of a square - use a class and test program to calculate the area and perimeter; assume length of square is 7 ft. Make sure to your variable, class and method names are descriptive

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!