Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Property that we . Write a program that will manage the income flow for Make sure that we follow all the programming style have learned

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Property that we . Write a program that will manage the income flow for Make sure that we follow all the programming style have learned in class: Proper variable names use of functions o getUserInput(prompt) -> float values o getMonth(prompt) -> string o findEvictionFees() o findLateFees() o findTotalPayment() o printResults) o plus more if want..... readability comments. Project Description AllyBaba owns a house. The house is 2,900 sq. ft. with 5 bedrooms and 3 full bath rooms. The rent is $2,000 per month. There are additional monthly fees for the rental. The additional monthly fees are for. Trash Water Pest Control Renter insurance . . Rent Payment Conditions There are conditions set when the rent is paid. The condition only applies for the monthly rent. Assume there are 30 days in a month. o If the rent is paid on or before the 3rd of the month, there are no late fees. o If the rent is paid after the 3rd day of the month, there will be $5.00 late fees for each day being late after the 3rd. Example: . If the day is 7 The late change will be (7-3)*5 o After 30th day of the month, an eviction notice will be given to the tenant and an additional $500 eviction charge will be added to the bill. evictionFee = (30 - 3) "5 + 500 The final bill will indude the day when the rent is paid, the monthly rent, the late fees, and other charges The final bill will include an additional $500 eviction charge if paid after 30th . . Enter the amount for trash 30.00 Enter the amount for water 40.00 Enter the amount for pest control 10.00 Enter the amount for renter insurance 20.00 2 det main(): header('AllyBaba House Rental Information') # this section is the monthly rent for 30 days monthly Rent 2000 monthDays 30 10 12 # This section obtains all the information charges month Paid - gol.Month ("Enter the month") day Paid get Month ("Enter the day of the month ) trashFoogetUserInput ("Enter the amount of trash ") waterbee getUserInpul("Enter the amount of water "> pest Control FogetUserInput ("Enter the amount for post control") ronterinsurance Fee get Uaer Input(Enter the amount for renter Insurance") This section calculates the late to late findlaterega (daypoid) 20 21 This section calculates the viction too oviction FindEviction Fees (month Daya) 24 This section calculatos the sum of other charges other Charges indotherCharges (trash Fee) waterbeg, pontControl Foe, monterin This section Einds the rent payment conditions it (dayPaid 3): otherCharges trasheetwater Feepest control fee + renter Insurance fee late (day Paid -3) 5 total Rant monthlyRent + late + otherCharges print('Late fee charges late) print("The Total Due tor', month Pald,2021', total Rent) oli (day Paid > 30): otherCharges trash Fee + water + post.controlle renter Insurance eviction (monthDays 3)*5 + 500 total Rent monthlyRent eviction + otherCharges print("The Total Due for', month paid ,'2021', totalRent) print('Eviction Eco, eviction) 16 This function displays the project exam det hender (prompt): 18 print (prompt) sidet findlateFees (dayPaid): late = (day Paid - 3) *.5 59 def findEviction Fees (monthDays): 60 eviction = (monthDays 3)*5 + 500 61 0 63 def findotherCharges (trash Fee, waterlee, pestControl Fee, renterInsurance fee): 64 otherCharges trash Fee + waterfoe + pest Control Fee + renterinsurancefee 65 56 # This function will accept users entry of an int value Bidet getUser Input (prompt): value Float (input (prompt)) 70 Det value 7 12 Display all the charges and result det print Results(): print(" komu! print('Monthly rent monthlyRent) 6 mes print (rash changes trash hee) print('Water charges', watereo) protestcontrolha! Des Centre) > need help figuring out with my cordes what's curong I am using Python, Windo Python 3.9.1 (tags/v3.9.1: 1e5d33e, Dec 7 2020, 17:08:21) [MSC27 64 bit (AM D64) 1 on win32 Type "help", "copyright", "credits" or "license () for more information. - RESTART: C:\Users\seman\OneDrive\Desktop\python\Jan 26\classwork11\classworkii Examl project.py I AllyBaba House Rental Information Enter the month April Enter the day of the month 2 Enter the amount of trash10 Enter the amount of water 10 Enter the amount for pest control 10 Enter the amount for renten innurance 50 Traceback (most recent call last): File "C:\Userseman OneDrive\Desktop\python Wan 26 classworki\clanworkillBX al project.py", line 95, in main() File "C:\Usera eman OneDrive\Desktop\python Wan 26 classworkilalaswork11 VEX aml project.py", line 31, in main late indlatefees (day Paid) File "C:\Users\seman OneDrive\Desktoppython\Jan 26 classworkillclassworki1 EX omi project.py", line 68, in findlate Fees late (dayPald 3) - 5 TypeError: unaupported operand type (1) for - Nonotyper and int Property that we . Write a program that will manage the income flow for Make sure that we follow all the programming style have learned in class: Proper variable names use of functions o getUserInput(prompt) -> float values o getMonth(prompt) -> string o findEvictionFees() o findLateFees() o findTotalPayment() o printResults) o plus more if want..... readability comments. Project Description AllyBaba owns a house. The house is 2,900 sq. ft. with 5 bedrooms and 3 full bath rooms. The rent is $2,000 per month. There are additional monthly fees for the rental. The additional monthly fees are for. Trash Water Pest Control Renter insurance . . Rent Payment Conditions There are conditions set when the rent is paid. The condition only applies for the monthly rent. Assume there are 30 days in a month. o If the rent is paid on or before the 3rd of the month, there are no late fees. o If the rent is paid after the 3rd day of the month, there will be $5.00 late fees for each day being late after the 3rd. Example: . If the day is 7 The late change will be (7-3)*5 o After 30th day of the month, an eviction notice will be given to the tenant and an additional $500 eviction charge will be added to the bill. evictionFee = (30 - 3) "5 + 500 The final bill will indude the day when the rent is paid, the monthly rent, the late fees, and other charges The final bill will include an additional $500 eviction charge if paid after 30th . . Enter the amount for trash 30.00 Enter the amount for water 40.00 Enter the amount for pest control 10.00 Enter the amount for renter insurance 20.00 2 det main(): header('AllyBaba House Rental Information') # this section is the monthly rent for 30 days monthly Rent 2000 monthDays 30 10 12 # This section obtains all the information charges month Paid - gol.Month ("Enter the month") day Paid get Month ("Enter the day of the month ) trashFoogetUserInput ("Enter the amount of trash ") waterbee getUserInpul("Enter the amount of water "> pest Control FogetUserInput ("Enter the amount for post control") ronterinsurance Fee get Uaer Input(Enter the amount for renter Insurance") This section calculates the late to late findlaterega (daypoid) 20 21 This section calculates the viction too oviction FindEviction Fees (month Daya) 24 This section calculatos the sum of other charges other Charges indotherCharges (trash Fee) waterbeg, pontControl Foe, monterin This section Einds the rent payment conditions it (dayPaid 3): otherCharges trasheetwater Feepest control fee + renter Insurance fee late (day Paid -3) 5 total Rant monthlyRent + late + otherCharges print('Late fee charges late) print("The Total Due tor', month Pald,2021', total Rent) oli (day Paid > 30): otherCharges trash Fee + water + post.controlle renter Insurance eviction (monthDays 3)*5 + 500 total Rent monthlyRent eviction + otherCharges print("The Total Due for', month paid ,'2021', totalRent) print('Eviction Eco, eviction) 16 This function displays the project exam det hender (prompt): 18 print (prompt) sidet findlateFees (dayPaid): late = (day Paid - 3) *.5 59 def findEviction Fees (monthDays): 60 eviction = (monthDays 3)*5 + 500 61 0 63 def findotherCharges (trash Fee, waterlee, pestControl Fee, renterInsurance fee): 64 otherCharges trash Fee + waterfoe + pest Control Fee + renterinsurancefee 65 56 # This function will accept users entry of an int value Bidet getUser Input (prompt): value Float (input (prompt)) 70 Det value 7 12 Display all the charges and result det print Results(): print(" komu! print('Monthly rent monthlyRent) 6 mes print (rash changes trash hee) print('Water charges', watereo) protestcontrolha! Des Centre) > need help figuring out with my cordes what's curong I am using Python, Windo Python 3.9.1 (tags/v3.9.1: 1e5d33e, Dec 7 2020, 17:08:21) [MSC27 64 bit (AM D64) 1 on win32 Type "help", "copyright", "credits" or "license () for more information. - RESTART: C:\Users\seman\OneDrive\Desktop\python\Jan 26\classwork11\classworkii Examl project.py I AllyBaba House Rental Information Enter the month April Enter the day of the month 2 Enter the amount of trash10 Enter the amount of water 10 Enter the amount for pest control 10 Enter the amount for renten innurance 50 Traceback (most recent call last): File "C:\Userseman OneDrive\Desktop\python Wan 26 classworki\clanworkillBX al project.py", line 95, in main() File "C:\Usera eman OneDrive\Desktop\python Wan 26 classworkilalaswork11 VEX aml project.py", line 31, in main late indlatefees (day Paid) File "C:\Users\seman OneDrive\Desktoppython\Jan 26 classworkillclassworki1 EX omi project.py", line 68, in findlate Fees late (dayPald 3) - 5 TypeError: unaupported operand type (1) for - Nonotyper and int

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

Step: 3

blur-text-image

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

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions