Problem Statement: File Handling in C/C++ On the basis ofthe given scenario crea
ID: 3615190 • Letter: P
Question
Problem Statement: File Handling in C/C++
On the basis ofthe given scenario create a file Expenses.txt, Open the file andcopy into another Expenses2.txt, Also show output onscreen
A college has announced the total budget of 50,000Rs.for eachgame. Games are done four times in a year. Take expenses as aninput from user.
Calculate the average expenses for a game:
Problem Statement: File Handling in C/C++
On the basis ofthe given scenario create a file Expenses.txt, Open the file andcopy into another Expenses2.txt, Also show output onscreen
A college has announced the total budget of 50,000Rs.for eachgame. Games are done four times in a year. Take expenses as aninput from user.
Calculate the average expenses for a game:
- If the expenses greater than 80% show as” VeryExpensive”.
- If the expenses are greater than 60% and less than 80%than show “Expensive ”
- If the expenses are greater than 50% and less than 60%than show “Less Expensive ”
- If the expenses are greater than 40% and less than 50% thanshow “Not Costly”.
- If the expenses are less than 40% than show“Best”.
Explanation / Answer
please rate - thanks prompt the user for input do the calculations make decision using if else open 1st file write to first file close file open file for reading open second file for output read 1st file, write to 2nd file and screen close both files hop this helps. I'm messaging you the answerRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.