Build the class in C# application having the name TitleAccount. You have to declare a float variable (static) named as incrementinterest for RateOfinterest. This particular class also contains a float type private instance variable startBalance.Write a method named Calculate to calculate the interest by multiplying the startBalance by incrememtinterest and divided by 12. In class also build a method InterestRateChanged to set the incrememtinterest to a new value. Build three TitleAccount objects , obj1 , obj2 ,obj3 with Balances of 2000,3000 and 5000 rs respectively in main function of Driver class. Set incrementinterest to 10%, then calculate the monthly interest and display the new balances all objects
: Build the class in C# application having the name TitleAccount. You have to declare a float variable (static) named as incrementinterest for RateOfinterest. This particular class also contains a float type private instance variable startBalance.Write a method named Calculate to calculate the interest by multiplying the startBalance by incrememtinterest and divided by 12. In class also build a method InterestRateChanged to set the incrememtinterest to a new value. Build three TitleAccount objects , obj1 , obj2 ,obj3 with Balances of 2000,3000 and 5000 rs respectively in main function of Driver class. Set incrementinterest to 10%, then calculate the monthly interest and display the new balances all objects
Step by step
Solved in 3 steps with 1 images