Home > Software engineering >  INFO1110/COMP9001
INFO1110/COMP9001

Time:11-15

Question:
Using python. Write a bill management system

Analytic:
Written in Python application, the program can record the user's income and expenditure, can show the change of the balance, the user can specify time setting revenue and expenditure,
Application needs to read from the file information as a starting conditions, then according to the instructions:
Trancaction: when the user input the command, the prompt the user for transactions involving how many money, positive for the income, negative for spending, and the reaction in balance,
Next, into the next day, but if the user balance below 0, we print "you run into debt," end of the program; Otherwise, the program should print to the next day, start a new day,
Status: shows summary to the present situation, and based on the current back amount and initial value and the user interaction,
Regular: user can specify some general income or pointed out that information,
Help: show message, prompting the user instructions of
Quit: exit,
This is a string handling problem, when the user output string matching and instructions to perform the corresponding operation, if not all of the above order is printed,

Knowledge is involved:
Read and write files, string handling, array

The original PDF
INFO1110/COMP9001 the Assignment 1
Money Tracker
Deadline: 23 rd Sept 2019, 11:59 PM AEST (Week 8, Monday)
Weighting: 10% of the final assessment mark
The 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
The 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 the file which you will write yourself.
Submission
You will submit your code on the 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 make. After each submission, the marking system will
Automatically check your code against the public test cases.
Both Please ensure you carefully follow the the assignment specification. Your program output must
Exactly match the output to in the examples.
Warning: Any attempts to deceive the or at the marking system will result in an immediate zero
For - the assignment. Negative marks can be assigned if you do not properly follow the
The assignment specifications, or your code is unnecessarily or deliberately obfuscated.
Help and feedback
You are encouraged to ask questions about the the assignment during the Helpdesk and on the Ed
The discussion board. Clear, remember that you should not be Posting any the assignment code
Publicly, as this order 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
For more information (it is with a section on Regular the Transactions it that implement
This feature last).
After handling for this file, the program will ask the user for their starting balance, like so:
Starting the balance: $
The user will then fill out this field with their initial balance, for example:
Starting the balance: $4.11
- If the starting value always be converted to a float, the program should print the Error:
Always convert to float! And the quit immediately
Starting the balance: $cat
Error: always convert to float!
- If the starting value is negative or zero, the program should print the Error: Must start with
Positive balance! And the quit immediately.
Starting the balance: $5
Error: Must start with the 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 the command:
Depending on what the user enters, the program will record the new the transactions, show some
The statistics, etc. For example, if the user types the transaction...
Enter the command: transaction
... Then the transaction operation (explained below) should execute. The program should
The continue have for more inputs indefinitely, and execute the appropriate code each time.
Operations

CodePudding user response:

This is to play house?

  • Related