In: Computer Science
Description: budget
Students will create a real-life budget that utilizes the mathematical operators to show monthly income, semiannual income, and an annual income. Students will use correct recognizable variables to describe each budgeted item. Please do not use single letter variables points will be deducted. Be sure to use proper documentation regarding comments to identify what you are doing in each part of your code.
List of budgeted items:
Monthly donations such as charities, special-needs, offerings, homeless.
Other items that may be included in the budget: food, restaurants, entertainment, animal care, mortgage, rent, property tax, household repairs, Utilities, cell phone, cable bill, internet, shopping and this may be broken into categories in itself, fuel, car maintenance, parking fees, medical in this can be broken into categories such as primary care, dental, medications, Insurance this may include car insurance, homeowners insurance, identity theft protection, and long term care for those who have aging parents, next category can be household items such as toiletries, laundry detergent, cleaning supplies, tools, next we have personal care this may include gym memberships, streaming memberships, salon services, Babysitting services, child support, alimony, this category can be Credit card services, personal loans, student loans, may also want to add School supplies, any professional conferences, Financial coaching, also possibly savings accounts, and finally such as birthdays, weddings, anniversaries and Christmas.
You do not have to use every single item in every single possible category because not everyone has the same expenses.
Your monthly budget might look like the following example:
Monthly= food, Rent, babysitter, groceries, car payments, car insurance, donations, utilities, cell phone, Health insurance, and entertainment
Semiannual = car_ maintenance, water_ bill, optical _visit, property _ tax, school_ supplies
Annual = special occasion, birthday Celebration, holiday spending
To find out your Weekly and monthly income you would do the following multiply hourly wage by hours _worked per week. To find your annual salary multiply your weekly income by 52 or 26 and maybe 12 if you get paid monthly.
Students should make sure to include the following print statements at the end of your assignment:
Four print statements that display the following: Weekly income, monthly income, semiannual income, and annual income.
The Final print statement we’ll include your monthly budget minus your monthly income and your annual income minus your semiannual budget.
Please be sure to use the proper format when printing a dollar amount.
(Python Coding)
KINDLY GIVE THUMBS UP IF ANSWER IS HELPFUL TO YOU.
NOTE-ADJUST THE VALUE OF VARIABLES ACCORDING TO YOUR CHOICE
CODE-
#PLEASE GIVE THUMBS UP IF IT IS HELPFUL TO YOU
#Note:-All the variables are in form of money.We are assuming that
currency is in $.
#declaring variables for monthly budgeted items
food=30;Rent=25;babysitter=20;groceries=15;car_payments=10;car_insurance=5
donations=2;utilities=5;cell_phone_bill=5;health_insurance=5;entertainment=5
#declaring variable for semiannual budgeted items
car_maintenance=25;water_bill=50;optical_visit=50;property_tax=50;school_supplies=50
#declaring variables for Annual budgeted items
special_occasion=100;birthday_celebration=100;holiday_spending=200
#Computing monthly,semiannual,annual budget by using respective
variables
monthly_budget=food+Rent+babysitter+groceries+car_payments+car_insurance
semiannual_budget=car_maintenance+water_bill+optical_visit+property_tax+school_supplies
anual_budget=special_occasion+birthday_celebration+holiday_spending
#declaring variable hourly_wage(in $) and hours_worked_per_week to
calculate Weekly,Monthly,semiannua,anual income.
hourly_wage=20
hours_worked_per_week=30
#computing incomes
weekly_income=(hourly_wage)*(hours_worked_per_week)
monthly_income=(weekly_income)* 4.2
#Note-Here we are multiplying weekly_income by 4.2 and not by 4 in
order to get more accurate result.But you can also
#Multipy it by 4.That would not affect that much
semiannual_income=monthly_income * 6
anual_income=monthly_income * 12
#print statements
print("weekly income is:"+str(weekly_income)+"$")
print("monthly income is:"+str(monthly_income)+"$")
print("semiannual income is:"+str(semiannual_income)+"$")
print("anual income is:"+str(anual_income)+"$")
#final print statement
print("monthly budget - monthly income
="+str(monthly_budget-monthly_income)+"$")
print("anual income - semiannual budget
="+str(anual_income-semiannual_budget)+"$")
OUTPUT-