如何存储在.text文件中,显示前一天下雨保存星期一到星期日降雨量,它应该覆盖前一周的值 [英] How do I store in a .text file, display the previous day rain save monday to sunday rainfall and it should override the value for the previous week

查看:86
本文介绍了如何存储在.text文件中,显示前一天下雨保存星期一到星期日降雨量,它应该覆盖前一周的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该计划必须记录每日降雨量,并且还必须能够将降雨量转换为积分

(谷歌的比例为mm和点数)。当你第一次运行程序时,它应该在整个星期(周一到周日)降雨时询问

。然后必须将其存储到适当的.txt

文件中。

再次打开应用程序时,它应显示前一天保存的降雨量

到文件。该计划应该保存周一至周日的降雨量,它应该覆盖前一周的价值

。在每周结束时(七天),该计划应显示

周的平均降雨量,最高和最低,包括天数。



我尝试了什么:



要求整周的raifall

解决方案

< blockquote>

引用:

我尝试了什么:



请求整周raifall

再试一次,努力尝试。





此处仅询问具体问题。


< blockquote>我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



如果遇到具体问题,请询问相关问题,我们会尽力提供帮助。但我们不打算为你做这一切!


the program must log daily rainfall and must also be able to convert the rainfall to points
(google the ratio of mm and points). When you run the program for the first time, it should ask
you the whole week’s (Monday to Sunday) rainfall. This must then be stored to an appropriate .txt
file.
When you open the application again, it should display the previous day’s rainfall that was saved
to the file. The program should save Monday to Sunday rainfall and it should override the value
for the previous week. At the end of each week (seven days) the program should display the
week’s average rainfall, the highest and lowest including the days.

What I have tried:

ask for the whole week's raifall

解决方案

Quote:

What I have tried:

ask for the whole week's raifall

Try again, try harder.


Ask only specific questions here.


We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


这篇关于如何存储在.text文件中,显示前一天下雨保存星期一到星期日降雨量,它应该覆盖前一周的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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