题意:
使用python编写一个账单管理系统

解析:
用Python编写应用程序,该程序能够记录用户的收入和支出,能够显示余额的变化,用户能够指定时间设定收入与支出。
程序需要从文件中读取信息当作起始条件,随后根据指令进行操作:
trancaction:当用户输入该指令后,提示用户输入交易涉及多少钱,正数为收入,负数为支出,然后反应在余额中。
next:进入第二天。但如果用户余额低于0,则打印“你欠债了”,程序结束;否则,程序应该打印到第二天,开始新的一天。
status:显示到目前的情况汇总,而且回根据当前金额与起始金额与用户互动。
regular:用户能够指定一些常规的收入或者指出信息。
help:显示提示信息,提示用户指令的操作
quit:退出程序。
这是一个字符串处理的问题,当用户输出的字符串和指令相匹配则执行相应的操作,如果不是上述的所有指令则打印提示信息。

涉及知识点:
文件读写、字符串处理、数组
更多可加微信讨论
IT_51zuoyejun

pdf全文
INFO1110 / COMP9001 Assignment 1
Money Tracker
Deadline: 23rd Sept 2019, 11:59pm AEST (Week 8, Monday)
Weighting: 10% of the final assessment mark
Overview
Brief Description
You will write a program that allows the user to manage their finances. The program will be able
to record the user’s incomes and expenses, display how their balance has changed, etc. It will also
need to be able to handle regular incomes and expenses; for example, the user will be able to
specify that they have a $100 income every Sunday, or that they spend $40.50 every Thursday.
Implementation details
Your program will be written in Python 3. The only modules you may import are sys and the
function.py file which you will write yourself.
Submission
You will submit your code on the assignment page on Ed. To make a submission, you will need to
press the “Mark” button. You may submit as many times as you wish without penalty - we will
mark the last submission that you make. After each submission, the marking system will
automatically check your code against the public test cases.
Please ensure you carefully follow the assignment specification. Your program output must
exactly match the output shown in the examples.
Warning: Any attempts to deceive or disrupt the marking system will result in an immediate zero
for the entire assignment. Negative marks can be assigned if you do not properly follow the
assignment specifications, or your code is unnecessarily or deliberately obfuscated.
Help and feedback
You are encouraged to ask questions about the assignment during the Helpdesk and on the Ed
discussion board; however, remember that you should not be posting any assignment code
publicly, as this would constitute academic dishonesty.
The Program
Starting the Program
The program will be given 1 extra command line argument when it is run:
$ python3 tracker.py (filename)
This (filename)will specify a file with information about regular incomes and expenses; see the
section on Regular Transactions for more information (it is recommended that you implement
this feature last).
After handling this file, the program will ask the user for their starting balance, like so:
Starting balance: $
The user will then fill out this field with their initial balance, for example:
Starting balance: $4.11
—If the starting value cannot be converted to a float, the program should print Error:
Cannot convert to float! and quit immediately
Starting balance: $cat
Error: Cannot convert to float!
—If the starting value is negative or zero, the program should print Error: Must start with
positive balance! and quit immediately.
Starting balance: $-5
Error: Must start with positive balance!
Once we have the regular payments and initial balance set up, we’re good to go! The program
should now continually ask for input, like so:
Enter command:
Depending on what the user enters, the program will record new transactions, show some
statistics, etc. For example, if the user types transaction …
Enter command: transaction
…then the transaction operation (explained below) should execute. The program should
continue asking for more inputs indefinitely, and execute the appropriate code each time.
Operations

悉尼大学INFO1110/COMP9001课业解析相关推荐

  1. 莫纳什大学 FIT1045 assignment2课业解析

    题意: 使用python解决两个task,锻炼使用算法解决问题的能力 解析: task1-partA:找到列表数字的峰值(峰值定义为大于其邻居的数字.一个峰值可能是列表中的第一个或最后一个数字,在这种 ...

  2. 莫纳什大学FIT1043 assignment2课业解析

    题意: 使用python来研究一个热带大气海洋数据集 解析: 任务A:分析数据集,查看数据集行与列的大小,每列中的最值,列出每个月的记录数,删除缺失值,可视化不同月份的海面温度,探索降水测量,调查每日 ...

  3. 新南威尔士大学COMP9021 QUIZ1课业解析

    题意: 巩固复习python中字典的相关知识 解析: 题目要求有4点,1补全print语句,统计mapping字典中元素的个数 ,2统计mapping字典中,没有值的键,存储在nonkeys列表中 , ...

  4. 新南威尔士大学COMP1531Iteration1课业解析

    新南威尔士大学COMP1531Iteration1课业解析 题意: 通过测试.开发和维护python后端服务器写几个开发文档 解析: 1.在协议接口中为所有的功能创建测试 2.写一个pdf,记录你当前 ...

  5. 墨尔本大学COMP10001课业解析

    墨尔本大学COMP10001课业解析 题意: 编程实现电子投票自动计数功能,对不同的投票方案有良好的支持性 解析: 背景: 大会选举,每位选民只能支持自己最喜欢的候选人,一人一票,获得最多选票的候选人 ...

  6. 悉尼大学陶大程:遗传对抗生成网络有效解决GAN两大痛点

    来源:新智元 本文共7372字,建议阅读10分钟. 本文为你整理了9月20日的AI WORLD 2018 世界人工智能峰会上陶大程教授的演讲内容. [ 导读 ]悉尼大学教授.澳大利亚科学院院士.优必选 ...

  7. python字符串去头尾_悉尼大学某蒟蒻的Python学习笔记

    About me 本蒟蒻是悉尼大学计算机科学大一的学生,这篇博客记录了学习INFO1110这门课的一些心得,希望能对大家有帮助. To start with 因为计算机只能识别机器语言,所以我们需要编 ...

  8. 悉尼大学计算机研究生学制,悉尼大学研究生学制

    澳大利亚悉尼大学具有丰富的研究生专业课程,学制安排一般在1-2年时间. 悉尼大学硕士申请要求 要求非211大学申请者,暂不需清华认证 (毕业证.学位证.成绩单) 入学要求: 工程类专业(Enginee ...

  9. 视觉+Transformer最新论文出炉,华为联合北大、悉尼大学发表

    作者 | CV君 来源 | 我爱计算机视觉 Transformer 技术最开始起源于自然语言处理领域,但今年5月份Facebook 的一篇文章将其应用于计算机视觉中的目标检测(DETR算法,目前已有7 ...

  10. 澳大利亚悉尼大学徐畅教授招收深度学习方向全奖博士生

    来源:AI求职 悉尼大学 悉尼大学(The University of Sydney),坐落于澳大利亚新南威尔士州首府悉尼,是研究型大学.悉尼大学注重理论与实践相结合,教育.法学.医学.会计与金融 . ...

最新文章

  1. 计算机进入安全模式,电脑怎么进入安全模式
  2. mysql definer_mysql常见问题之视图权限控制--安全性为DEFINER
  3. python next day_PYTHON养成日记 DAY-13
  4. 264 参考帧 list0 list1
  5. 全面认识UML-类图元素(java)
  6. lynda ux_UX编排原理
  7. Linux 安装多个版本JDK并设置默认版本
  8. 如果NATv6 是个笑话,那么 IPv6 是什么?
  9. 查漏补缺!java主要包括哪几种开发平台
  10. java 面试基础总结(二)---多线程
  11. 作业帮基于 Flink 的实时计算平台实践
  12. jQuery 图片轮播插件–GalleryView
  13. gridview的sort_Gridview自动排序功能的实现
  14. 斗地主系列之牌型大小比较
  15. Android 系统分析工具:Systrace
  16. 英雄联盟lol鼠标突然不能a兵了
  17. 人工智能在金融行业的应用
  18. python实现截取excel中的表格,生成图片
  19. 清北学堂 2017-10-05
  20. 无线射频专题《射频信号,链路预算与衰落容限》

热门文章

  1. excel表格横向纵向变换_Excel 的初级逻辑
  2. pd.DataFrame()函数
  3. html文本内容自动滚动,网页HTML代码滚动文字制作
  4. vue 临时会话sessionStorage
  5. 掘金「跳转外链风险提示」实现思考
  6. WEB前端代码:边框阴影、边框图片、背景样式、文本样式、字体样式
  7. 云栖社区版权提示与说明【2018版】
  8. 读书寄语:难过时就抱抱自己,时间治愈的,都是愿意自渡的人
  9. 国内首款众筹刷单破亿的产品诞生,监管缺乏下京东刷单文化盛行
  10. 使用python实现自动爬取得物交易记录,商品信息进行数据分析