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

  Add a list to keep track of all the numbers guessed

Add a list to keep track of all the numbers guessed and modularize your code. Be sure to import random at the beginning of your code.

  What are the differences in the if-else and if statements

What are the differences in the if-else and if statements? Why does it make a difference in programming to understand the order of "And", "or".

  Compare the values of adding the numbers to multiplying

Compare the values of adding the numbers to multiplying 1/2 and 1/3 times the number of times they were added.

  Write a program that will open a blastn

Write a program that will open a BLASTN (nucleotide to nucleotide search) output file, parse out specific information, and produce formatted output that will be written to STDOUT

  How many grains of wheat would be on the chessboard

There is a famous puzzle intended to demonstrate the surprising growth of exponential sequences, sometimes called the "Wheat and chessboard problem."

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Shopping List 1.0 - You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection, repetition,..

  Write a function that accepts a single list argument

Write a function that accepts a single list argument. Your function must return the longest increasing sequence of numbers present in the argument list.

  Write code to print out the arithmetic sum of the two

Suppose you know x is an integer and ys is a string representing an integer. For instance, x is 5 and ys is '25'. Write code to print out the arithmetic sum.

  Write a function that accepts as an argument

Determine an athletes final score for the event, the highest and lowest judges' scores are discarded and then the average of the rest of the scores

  Create mini-python projects or programs

Your assignment is to create mini-Python projects or programs and to run them in the Python-IDLE environment

  Write a program that counts the frequencies of each word

Write a program that counts the frequencies of each word in a text, and output each word with its count and line numbers where it appears. We define a word as a contiguous sequence of non-white-space characters.

  Describes the behaviour of the vending machine system

Design and model two classes:Productand VendingMachine - Create an activity chart which describes the behaviour of the vending machine system

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