Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
e (KM) is medium sized mortgage company. Any one who is interested to buy
a house can lend money from this company by their mortgage system. Once the contract is signed for a capital value (say P) the borrower pays the same amount of money (say A) to this company each month throughout the life of the mortgage. Part of the monthly payment will be interest calculated as i percent (monthly percentage) of the current unpaid balance. The remainder of the monthly payment will be applied toward reducing the unpaid balance of the capital.
The company needs to determine the following information.
o The amount of interest paid each month
o The amount of money paid to settle the mortgage each month.
o The cumulative amount of interest that has been paid at the end of each month.
o The cumulative amount of money that has been paid to settle the mortgage at the
end of each month
o The amount of the money (from the capital) that is still unpaid at the end of each
o The amount of the last payment. (this might be less than A).
o The life time of the mortgage in months.
o The total amount of money paid at the end of the life time of the mortgage.
 Use the top down decomposition approach to develop this problem
(i) Draw the structure chart clearly.
(ii) Identify the call by value and call by reference parameters.
(iii) Write the complete program in C.
As an example, you may test the data using P = Rs.200,000, A = 20,000, i =1% per
month, P = Rs. 400,000, A= 20,000 , i = 1% per month

What I have tried:

it can't use arrays/structures
Updated 30-May-22 4:47am
CHill60 30-May-22 10:26am    
The "What I have tried:" section is where you are meant to put the code you have tried so far. We are more than happy to help but we will not do your homework for you
[no name] 30-May-22 12:34pm    
You start with "drawing the structure chart" of the program (i.e. designing) ... they don't mean that the program does the drawing. Once you have a design, you start programming.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900