Write a simple budget python program using techniques

Assignment Help Python Programming
Reference no: EM132364416

Programming Task

Background

For this assessment, you will be required to write a simple budget Python program using techniques discussed in class.

It is expected that you program all the input and output yourself, making the experience seem like that of a standard command line application. Students are required to follow methods discussed in class, other methods won't be necessarily penalised, but penalties may occur if they clearly are against the spirit of the assessment.

DO NOT worry about errors due to the user inputting incorrect (or unexpected) values (e.g. a string where an int is expected), you don't need to counter them. Though, there should be no errors when the user actually inputs what is expected. Money can either be an int (whole number, e.g. 1, 2, 3, 50, 70, 100 etc) or floats (decimal number, 1.0, 2.55, 3.8457, 100.2 etc), it doesn't matter! Feel free to choose.

The user will be asked for (on a monthly basis)
• The name of their company
• The amount of rent their company must pay
• The total amount their company spends on goods and/or services
• The total amount of salary their company pays its employees
• The total amount of income their company receives from clients/customers (before tax)
• The tax in decimal (i.e. 10% = 0.1, 50% = 0.5) their company must pay from their income

The program should then output
• Some form of title (or notice) which includes the company name
• Total expenditure per month (= rent + goods/services + salary)
• Income after tax (= gross income - [tax * gross income], or, = [1 - tax] * gross income)
• Net profit per month (= income after tax - expenditure)
• Net profit per year (= net profit per month * 12)

• Some kind of remark or note regarding the current situation of the company, for example if it's making a lot of profit you may mention it, or if it's losing money you may mention it. Any kind of statement is generally okay, so long as it's appropriate; be creative! :) (clearly this must use if statements to function).

The below is generally how your program's output should look (captured directly from Python IDLE), note that the black text is user input.

1980_figure.jpg

Hints
• Use print("...") for the general output, remember to use print() by itself if you want to add more lines between outputs.
• While all money may be represented using ints, the value of tax must be a float as it's a decimal value.
• User input is captured by the input("...") function.
• Please review the user input content.
o Get string from user -> name = input()
o Get int form user -> rent = int(input())
o Get float from user -> tax = float(input())

Presentation

Assignment files must run without error through the Python interpreter.

Make sure the code is readable. This includes utilizing meaningful variable names and comments, making sure it is spaced out and that lines are not too long (if they start to become too long, break them up. A general rule is each line shouldn't be more than around 80 characters long).

Verified Expert

The task of the assignment is to develop a python program. The program collects the details of the employees like their name, amount of money spent on rent, goods and/or services, salary for their, income earned before tax, and tax in decimal. Then the program output company name, total expenditure per month, income after tax, Net profit per month and Net profit per year.

Reference no: EM132364416

Questions Cloud

How much fran can expect to live on per year : Show how much Fran can expect to live on per year (assuming end-of-year withdrawals) after she retires
The unauthorized replication and installation of software : Which deals with the unauthorized replication and installation of software in foreign countries. Is this case still relevant?
Social networking risks : Social media and social networking are some of the newest tools used to market products and services to the public.
Salvage value of the new machinery : What is the After-tax Salvage Value of the new machinery? Assume that the tax rate is 28%.
Write a simple budget python program using techniques : Programming Task - Write a simple budget Python program using techniques discussed in class - making the experience seem like that of a standard command
Evaluate the threats of a botnet attack : Evaluate the threats of a botnet attack. Your response should be at least 200+ words, and contain at least one external citation and reference in APA format.
Describe aspect of each erm implementation : Respond substantively to at least two other students' posts. Describe and comment on one aspect of each ERM implementation from which the other organization.
Reference list using IEEE referencing style : Reference sources must be cited in the text of the report, and listed appropriately at the end in a reference list using IEEE referencing style.
Discuss the aspects of the sdlc that are critical : Review the steps of the SDLC. Explain why quality service delivery depends on the execution of the service delivery life cycle. Discuss the aspects of the SDLC.

Reviews

len2364416

9/2/2019 12:06:04 AM

Correct Output 7% High Distinction 0.8 - 1.0 Assignment meets all of the requirements with correct output Clean Interface 2% Interface has is completely neat and consistent with no wording errors. Code Style 1% All required commenting is present and all variable names are appropriate and descriptive.

len2364416

9/2/2019 12:05:23 AM

Your .py file is the one you save and open to do the assignment. You should check your files after submission, to make sure you’ve uploaded what you expected. You can check your .py files by opening them in notepad (or any other text editor) and seeing if it matches with what you see in IDLE Python program. ASSESSMENT CRITERIA This Assessment is worth 10%, based on the following, • 7% - Correct output, when given corresponding input. Values must be calculated correctly. • 2% - Clean interface. Refer to the provided program screen capture. You may style your program a little bit differently, though you must keep it clean and intuitive for the user. • 1% - Code style. Making sure the code is readable. This includes utilizing meaningful variable names and comments, making sure it is spaced out and that lines are not too long (if they start to become too long, break them up. A general rule is each line shouldn’t be more than around 80 characters long). Please make sure there is a comment stating your name and student number.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd