(Solved) : Yuans Macbook Pro Pc Yuan Long Loancalc Enter Amount Loan 500 Enter Interest Rate Per Yea Q42711354 . . .

Yuans-MacBook-Pro:PC yuan long $ ./ loanCalc Enter amount of loan: $ 500 Enter Interest rate per year : % 7.5 Enter number of

Yuans-MacBook-Pro:PC yuan long $ ./ loanCalc Enter amount of loan: $ 500 Enter Interest rate per year : % 7.5 Enter number of payments : 5 #NMtu Montly payment should be 101.88 EESES===========AMORTIZATION SCHEDULE===================== Payment Principal Interest Balance $101.88 $98.76 $3.12 $401.24 $101.88 $99.38 $2.51 $301.87 $101.88 $100.00 $1.89 $201.87 $101.88 $100.62 $1.26 $101.25 $101.88 $101.25 $0.63 $0.00 Note: To convert a string to a float point number, you can use the library function atof The C program can be implemented within 80 lines of code. If your program is longer than 80 lines, you may need to think about how to simplify your program. Question: Modify your C program by accepting the three inputs from command line. The first argument is the amount of loan, the second one is the interest rate per year and the last one is the number of payments. Name this C program as loan.c. To run the executable, e.g. you can try the command as below: /loan 500 7.5 5 Show transcribed image text Yuans-MacBook-Pro:PC yuan long $ ./ loanCalc Enter amount of loan: $ 500 Enter Interest rate per year : % 7.5 Enter number of payments : 5 #NMtu Montly payment should be 101.88 EESES===========AMORTIZATION SCHEDULE===================== Payment Principal Interest Balance $101.88 $98.76 $3.12 $401.24 $101.88 $99.38 $2.51 $301.87 $101.88 $100.00 $1.89 $201.87 $101.88 $100.62 $1.26 $101.25 $101.88 $101.25 $0.63 $0.00 Note: To convert a string to a float point number, you can use the library function atof The C program can be implemented within 80 lines of code. If your program is longer than 80 lines, you may need to think about how to simplify your program. Question: Modify your C program by accepting the three inputs from command line. The first argument is the amount of loan, the second one is the interest rate per year and the last one is the number of payments. Name this C program as loan.c. To run the executable, e.g. you can try the command as below: /loan 500 7.5 5

Expert Answer


Answer to Yuans-MacBook-Pro:PC yuan long $ ./ loanCalc Enter amount of loan: $ 500 Enter Interest rate per year : % 7.5 Enter numb…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?