Click here to Skip to main content
15,909,466 members

Comments by Member 13700405 (Top 4 by date)

Member 13700405 6-Mar-18 1:11am View    
sorry for that..
but i write my code in what i tried but i do not get perfect answer..
so please explain me only point no. 7_ ...because i do not understsnd
what its try to say.....

7_At the end of each month, your savings will be increased by the return on your investment, plus a percentage of your monthly salary (annual salary /12).
Member 13700405 4-Mar-18 22:36pm View    
Deleted
Write a program to calculate how many months it will take you to save up enough money for a down payment. You will want your main variables to be floats, so you should cast user inputs to floats...

and this is some condition and information for it...

1__. Call the cost of your dream home total_cost.
2__. Call the portion of the cost needed for a down payment portion_down_payment. For simplicity, assume that portion_down_payment = 0.25 (25%).
3__. Call the amount that you have saved thus far current_savings. You start with a current savings of $0.
4__. Assume that you invest your current savings wisely, with an annual return of r (in other words, at the end of each month, you receive an additional current_savings*r/12 funds to put into your savings – the 12 is because r is an annual rate). Assume that your investments earn a return of r = 0.04 (4%).
5__. Assume your annual salary is annual_salary.
6__. Assume you are going to dedicate a certain amount of your salary each month to saving for the down payment. Call that portion_saved. This variable should be in decimal form (i.e. 0.1 for 10%).
7__. At the end of each month, your savings will be increased by the return on your investment, plus a percentage of your monthly salary (annual salary /12).
Member 13700405 4-Mar-18 22:34pm View    
Write a program to calculate how many months it will take you to save up enough money for a down payment. You will want your main variables to be floats, so you should cast user inputs to floats..


and this are the condition for that or some information...

1__. Call the cost of your dream home total_cost.
2__. Call the portion of the cost needed for a down payment portion_down_payment. For simplicity, assume that portion_down_payment = 0.25 (25%).
3__. Call the amount that you have saved thus far current_savings. You start with a current savings of $0.
4__. Assume that you invest your current savings wisely, with an annual return of r (in other words, at the end of each month, you receive an additional current_savings*r/12 funds to put into your savings – the 12 is because r is an annual rate). Assume that your investments earn a return of r = 0.04 (4%).
5__. Assume your annual salary is annual_salary.
6__. Assume you are going to dedicate a certain amount of your salary each month to saving for the down payment. Call that portion_saved. This variable should be in decimal form (i.e. 0.1 for 10%).
7__. At the end of each month, your savings will be increased by the return on your investment, plus a percentage of your monthly salary (annual salary /12).

Member 13700405 2-Mar-18 23:35pm View    
no i change code i removed if statement from old code..
and now its look perfect on paper but when i run it i face same problem..
ya but i find a other solution...but not with this method ..
i post it my solution also...
thank you...