Question: it. Write a C++ program to create your own text file using the given guidelines: 1. Insert your student ID as a comment in the
it. Write a C++ program to create your own text file using the given guidelines: 1. Insert your student ID as a comment in the program 2. Create a macro with the symbol FIRST_NAME and assign your First name to 3. Declare all the variables and file streams 4. Create and open your own file named myfinal.txt 5. Read the number of customers 6. Use the loop and conditional statement, enter all the customer details : o Customer account number . Customer name Customer salary per month Calculate bank loan amount and EMI (Equated Monthly Instalment) as per the following conditions: If customer salary is more than 2000 then loan amount = 10 customer salary, EMI = loan amount / 6, otherwise loan amount = 5 * customer salary, EMI = loan amount / 12 .Write(store) all the customer details which include Account Number, Customer name, customer salary, loan amount, and EM in the myfinal.txt file. Note: Copy and paste the C++ code in the provided text space Attach the output file (.txt) using the attachment. Your output file should contain the below information (records) fields: Account Number Customer Name Salary/pm Loan Amount EMI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
