PDA

View Full Version : Help Plz


wyasser
11-23-2009, 05:40 AM
Problem Statement: File Handling in C/C++
On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another Expenses2.txt, Also show output on screen
A college has announced the total budget of 50,000Rs.for each game. Games are done four times in a year. Take expenses as an input from user.
Calculate the average expenses for a game:


1. If the expenses greater than 80% show as” Very Expensive”.
2. If the expenses are greater than 60% and less than 80% than show “Expensive ”
3. If the expenses are greater than 50% and less than 60% than show “Less Expensive ”
4. If the expenses are greater than 40% and less than 50% than show “Not Costly”.
5. If the expenses are less than 40% than show “Best”.

oracleguy
11-23-2009, 07:06 AM
Please see our policy on homework assignments: http://www.codingforums.com/showthread.php?t=53446

We won't just do the assignment for you, you have to put forth effort to actually try it. With programming assignments it means actually writing code first and then asking specific questions with the parts that you are struggling with.

drhowarddrfine
11-23-2009, 01:47 PM
Great title for this thread! Did you think it up on your own? You must have had help.

testware
11-23-2009, 02:33 PM
Maybe we should start a homework section where just homeworks are discussed :)