Question: Write a C++ program to create your own text file using the given guidelines: Insert your name as a comment in the program. Create a

Write a C++ program to create your own text file using the given guidelines:

Insert your name as a comment in the program. Create a macro with the symbol FRIEND_NAME and assign your Friend's name to it. Declare all the necessary variables and file streams. Create and open your own file named final.txt Read the number of consumers Enter all the consumer details using the looping statement as follows: Consumer account number Consumer name Consumer salary per month Calculate bank loan amount and Term Payment as per the following conditions: If consumer salary is more than 1600 then loan amount = 11 * consumer salary, Term Payment = loan amount / 20, otherwise

loan amount = 14 * consumer salary, Term Payment = loan amount/ 20

Write(store) all the consumer details which include Account Number, Consumer name, Consumer salary, loan amount, and Term Payment in the final.txt file. _____________________________ this is the question . i want the code fast please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!