Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

On the basis of the given scenario create a file Expenses.txt, Open the file and copy it into another Expenses2.txt, Also show output on screen

On the basis of the given scenario create a file Expenses.txt, Open the file and copy it into another Expenses2.txt, Also show output on screen

A college has announced a total budget of 50,000Rs.for each game. Games are done four times in a year. Take expenses as input from the 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 than80% then show “Expensive ”

3. If the expenses are greater than 50% and less than60% then 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% then show“Best”.

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

include include using namespace std int mai... blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Physics

Authors: Jearl Walker, Halliday Resnick

8th Extended edition

471758019, 978-0471758013

More Books

Students explore these related Accounting questions

Question

Is there administrative support?

Answered: 3 weeks ago