0

• The program consists of a Class customer and the Main function.
• The class customer contains private data items as item value, interest payment, tax payment and total payment.
• The class customer includes two public functions as lease Cal() and lease Show().
• lease Cal() function receives item value and interest rate passed by the main function and set values for item value, interest payment, tax payment and total payment This function calculates interest payment, tax payment and total payment. If the item value is greater than 1000000 then add 2% additional tax for the total payment.
Hint: Interest payment =item value* interest rate.
Tax payment= item value*tax rate
Total Payment=item value + interest amount + tax payment

• The main function is used to ;
-Create objects of customer as piyal, sunil.
-Use object piyal to call lease Cal() passing item value and interest rate.
-Use object piyal to call lease Show() .
-Use object sunil to call lease Cal() passing item value and interest rate.
-Use object sunil to call lease Show().

3
Contributors
3
Replies
24
Views
3 Years
Discussion Span
Last Post by samson.dadson.3
0

• lease Show() function displays item value, interest payment, tax payment and total payment.

1

Sorry, but we don't do your homework for you (that is cheating). Please make an effort to do the assignment, and we can help you with your mistakes.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.