COMPE-223-HW1 - Homework 1 You need to calculate monthly...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework – 1 You need to calculate monthly payments for a loan. Write a class to hold and calculate the following information. Use simple interest calculation. Interest is not cumulative but it is constant every month. Total interest payment is distributed equally to each month. Write a class to calculate monthly payments. Information to be stored in the class is as follows (member variables) Customer Name (string) Yearly interest rate ( double) Duration in months (int) Total mount of money borrowed ( double) Methods (C++ terminology for a function) to be implemented in the class: (member methods) - Set/Get methods for all variables above (total 8 functions: 4 set. .. and 4 get. ..) (The range for month is between 1 . . 12. Money borrowed can not be negative and interest rate can not be negative. Check the range of all variables in the set. .. functions ) - Constructor/Constructors(overloaded) - A method to calculate and return monthly payment including interest using the information given before
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

COMPE-223-HW1 - Homework 1 You need to calculate monthly...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online