# YooDaniel_Wk4.py - # Name: Daniel Yoo Class: 102/7388 Date:...

• 2

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 2 pages.

# Name: Daniel YooClass: 102/7388Date: 11/8/2022# This program computes the cost of house cleaning based on the size of the# house and type of cleaning.# Function ---------------------------------------------------------------------def getCleaningRoom():cleaningRoom = int(input("\nHow many rooms do you need cleaning today?\n"))#Validateif cleaningRoom == 0:print("Must have at least one room to order cleaning services!")cleaningRoom = int(input("\nHow many rooms do you need cleaning today?\n"))return (cleaningRoom)def calcCost(cleaningRoom, cleaningType):#Set constant variables for the cost of cleaning type and number of roomscleaningCompCost = 12cleaningLightCost = 8cleaningRoomS = 100cleaningRoomM = 150cleaningRoomL = 200#Computes the cost based on type of cleaning and the number of roomsif cleaningType == "light":if cleaningRoom > 25:totalCost = (cleaningLightCost * cleaningRoom) + cleaningRoomLprint("\nCleaning Type: Light")print("For a Large, your total cost is \$", totalCost)elif 25 >= cleaningRoom > 15:totalCost = (cleaningLightCost * cleaningRoom) + cleaningRoomMprint("\nCleaning Type: Light")print("For a Medium, your total cost is \$", totalCost)elif 15 >= cleaningRoom > 0:totalCost = (cleaningLightCost * cleaningRoom) + cleaningRoomS
End of preview. Want to read all 2 pages?

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Cleaning, call, computes, choose