Analyze a family spending habits

Assignment Help Basic Computer Science
Reference no: EM131808584

Please answer back in Python.

For this assignment you are going to analyze a family's spending habits by creating a program that performs arithmetic calculations. The program should ask the user to enter information for the following questions.

1.   How much does the family spend on groceries per month?

2.   How much does the family spend on dining out per month?

3.   How much does the family spend on entertainment per month?

4.   How much does the family spend on rent/mortgage per month?

5.   How much does the family spend on utilities per month?

6.   How many family members are there?

7.   What is the family income per year?

Questions 1-5 and 7 should accept decimal values from the user. Question 6 should accept an integer from the user.

The program should output the total amount that the family spent on food per month. This includes groceries and dining out. The program also needs to output the total amount spent on living expenses each month. This is the sum of rent/mortgage and utilities. The program should also display the entertainment expenses per person per month. Finally, the program needs to show the family surplus (deficit if the number is negative). This is the income minus all expenses. But remember that the expenses are input as monthly numbers and the income is yearly, so you will need to convert the monthly expenses to yearly numbers to calculate the surplus.

Check out the two samples input and outputs below. Remember, ">>" indicates user input.

Sample 1

Welcome to the family financial analyzer.

How much does the family spend on groceries per month?

>> 1200.50

How much does the family spend on dining out per month?

>> 500.00

How much does the family spend on entertainment per month?

>> 200.00

How much does the family spend on rent/mortgage per month?

>> 850.00

How much does the family spend on utilities per month?

>> 375.75

How many family members are there?

>> 4

What is the family income per year?

>> 43000.00

Here are your family finances analyzed.

Your family spends $1,700.50 on food per month.

Your family spends $1,225.75 on living expenses per month.

Your family spends $50.00 per person on entertainment per month.

Your family surplus is $5,485.00 per year (negative number means deficit).

Sample 2

Welcome to the family financial analyzer.

How much does the family spend on groceries per month?

>> 1300.50

How much does the family spend on dining out per month?

>> 550.00

How much does the family spend on entertainment per month?

>> 600.00

How much does the family spend on rent/mortgage per month?

>> 950.00

How much does the family spend on utilities per month?

>> 475.75

How many family members are there?

>> 4

What is the family income per year?

>> 45000.00

Here are your family finances analyzed.

Your family spends $1,850.50 on food per month.

Your family spends $1,425.75 on living expenses per month.

Your family spends $150.00 per person on entertainment per month.

Your family surplus is $-1,515 per year (negative number means deficit).

Reference no: EM131808584

Questions Cloud

Understand the phases of attack : Choose one phase and describe how that phase fits into the overall attack process. Support your answer with references.
Explain the physical security related advantages : Explain the physical security related advantages and disadvantages of operating a centralized enterprise level data center including the use of supporting examp
What effect would it have on next year earnings : What effect would a $ 9.85 million capital expense have on this year's earnings if the capital is depreciated at a rate of 1.97 million per year for five years
Information system projects : Seventy percent or more of information system projects have failed to meet the needs of users and have exceeded budgetary limits.
Analyze a family spending habits : For this assignment you are going to analyze a family's spending habits by creating a program that performs arithmetic calculations.
Confidence interval for the population mean inventory level : Is the average of the measured inventory levels significantly different from 500, which is the number, used for management budgeting purposes?
Prepare an entry to allocate over- or underapplied overhead : Required: Prepare an entry to allocate over- or underapplied overhead to Work in Process, Finished Goods and Cost of Goods Sold
What was the companys cost of goods sold amount : Taylor Company's work in process account increased by $1,000. What was the company's cost of goods sold amount? Explain EVERY step.
Data and the total number of points for team : Then, based on that input, it will create a text chart with the data and the total number of points for each team.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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