需要C ++代码 [英] Need C++ Code

查看:96
本文介绍了需要C ++代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题陈述:C/C ++中的文件处理
根据给定的方案创建文件Expenses.txt,打开 文件并复制到另一个Expenses2.txt,同时在屏幕上显示输出
一所大学宣布每场比赛的总预算为50,000卢比. 游戏一年完成四次.以费用为输入 用户.
计算游戏的平均费用:





1.如果支出超过80%,则显示为非常昂贵".
2.如果费用大于显示昂贵"的60%而小于80%
3.如果费用大于显示低费用"的费用的50%以上且少于60%,
4.如果费用大于不贵"显示的费用的40%以上且少于50%.
5.如果费用少于显示最佳"的40%.

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".

推荐答案

显而易见的作业问题.没有人会为您回答这个问题.做你自己的工作.
Obvious homework question. Nobody is going to answer this for you. Do your own work.


但是我不知道如何解决它,请

But i have no idea about it how can i solve it plz

 

然后你在错误的学习课程上,尝试一些与您的知识和能力保持一致的事情.

Then you are on the wrong study course, try something more in keeping with your knowledge and ability.


然后,您应该退学,否则你的老师会让你失败.不要让他们为您做工作而浪费许多专业人士在此网站上的时间.由于我们不会为您这样做,因此会浪费我们的时间和时间.

相反,我建议您找一位导师或去找老师寻求帮助.学习基本概念;不要要求施舍.如果您只是要求答案,您将永远学不会;您必须自己解决问题.
Then you should drop out or your teacher should fail you. Don''t waste the time of the many professionals on this website by having them do your work for you. Since we''re not going to do it for you, it wastes our time and your time.

Instead, I recommend you find a tutor or go to your teacher and ask for help. Learn the underlying concepts; don''t ask for a handout. You will never learn if you just ask for the answer; you have to work the problem yourself.


这篇关于需要C ++代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆