| | |
Output in the text file
![]() |
•
•
Join Date: Jul 2004
Posts: 5
Reputation:
Solved Threads: 0
Hello,
I'm just a beginner (student). Now still undergo C programming class to upgrade my knowledge in C. I was asked to complete a simple program to get the output of C program in the text file as shown below. This program is to help user to consider a range of interest rates for bank loan over 10,20,30 years. Prior to get this output the user is asked to enter the amount loan and a minimum & maximum interest rate. The output has to be in the form of text file as below.
Eg. Loan Amount : xxxxxx
Interest Rate Duration Monthly Payment Total Payment
xxxxx xxxx xxxxxxxx xxxxxxxx
I'm thinking to use the following formula for calculating the monthly payment & transfer the result to "Monthly payment column" above. However, I have no idea what to do first & how to go about to get this result printed in the text file. Can I use this math equation---> payment = i*p/1-pow(1+i,-n).
Anyone has a similar program that I can use or study in order for me to get start. Your assistance is highly appreciated.
Rgds,
GKS
( Note : Formula for mthly payment = ip/1-(1+i)-n ).
I'm just a beginner (student). Now still undergo C programming class to upgrade my knowledge in C. I was asked to complete a simple program to get the output of C program in the text file as shown below. This program is to help user to consider a range of interest rates for bank loan over 10,20,30 years. Prior to get this output the user is asked to enter the amount loan and a minimum & maximum interest rate. The output has to be in the form of text file as below.
Eg. Loan Amount : xxxxxx
Interest Rate Duration Monthly Payment Total Payment
xxxxx xxxx xxxxxxxx xxxxxxxx
I'm thinking to use the following formula for calculating the monthly payment & transfer the result to "Monthly payment column" above. However, I have no idea what to do first & how to go about to get this result printed in the text file. Can I use this math equation---> payment = i*p/1-pow(1+i,-n).
Anyone has a similar program that I can use or study in order for me to get start. Your assistance is highly appreciated.
Rgds,
GKS
( Note : Formula for mthly payment = ip/1-(1+i)-n ).
![]() |
Similar Threads
- Find matches in two text files, output them into a third text file (Python)
- Saving output of script to text file (Python)
- Writing my program output to a text file. (Java)
- Saving compiler output in a text file (C++)
- I need a simple tile based map editor, that will output to a text file. (Game Development)
- Inputting text file data into an array, please help! (C++)
- Output in Text file-How to apply fprintf()? (C)
Other Threads in the C Forum
- Previous Thread: piglatin
- Next Thread: Project Help
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking highest homework i/o inches include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming socketprogramming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h





