Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Using python programming, I need help with questions 1-7. There are two samples attached as a guide. Thank you for your help! For this week's

image text in transcribed Using python programming, I need help with questions 1-7.

There are two samples attached as a guide. Thank you for your help!

For this week's assignment you are going to analyze a family's spending habits by creating a program that performs arithmetic caculations. 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 manth? 4. How much does the family spend on rent/mortgage per month? 5, How much does the family spend on utilities per month? &. 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 cutput the total amount that the family spent on food per month. This includes groceries and dining aut. The program also needs to output the total amount spent an living expenses each month. This is the sum of rent/mortgage and utilities. The prcgram 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 onthly expenses to yearly numbe to calculate the surplus. Check out the two samples input and outputs below. Remember, " indicates user input. Welcome to the family financial analyzer. How much dues the family spend on groceries per month? 1200.50 How much daes 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/mortoage per morth? 850.00 How much dues the family spend on utilities per month? 375.75 How many family members are there? What is the family income per year? 43000.00 Here are your family finances analyzed Your family spends $1.700.50 on rood per month. Your family spends $1,225.75 on living expenses per month Ycur family spends $50.00 per person on enterta nment per month Your family surplus is $5,485.00 per ycar (negativ number means deficit) Sample 2 Welcome to the family financial analyzer. How much dues the family spend on groceries per month? 1300.50 How much daes the family spend on dining out per month? 550.00 How much does the family spend on entertainment per month? G0O.00 How much does the family spend on rent/mortoage per morth? 950.00 How much dues the family spend on utilities per month? 475.75 How many family members are there? What is the family income per year? 45000.00 Her are your family finances analyzed Your family spends $1,850.50 on food perronth. Your family spends $1,425.75 on living expenses per month. Ycur family spends $150.00 per person on entertainmant per month. Your family surplus is $-1,515 per year(negat we number means defct)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students explore these related Databases questions