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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started