Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Greeting
- def greeting():
- print('We will do our best to satisfy your cleaning needs, money back guarantee!')
- print('We offer the following services, "LawnCare", "Deep Cleaning", and " Full Lawn Detail "')
- print('Each one of these services offer their own set of perks')
- def serviceselection_lawncount():
- LawnCare=str.lower('LawnCare')
- LawnGrooming=str.lower('DeepCleaning')
- FullLawnDetail=str.lower('FullLawnDetail')
- print("-"*45)
- service_select= input('Which service would you like?:').lower().replace(" ", "")
- print("-"*45)
- if (service_select == LawnCare):
- print('The LawnCare service includes thorough Lawn Care of all the lawns listed')
- print("This service cost $45 per lawn")
- service_selectprice=45
- elif (service_select == LawnGrooming):
- print('The Lawn Grooming service includes the thorough Lawn Care package, fertilizing, and tilling')
- print("This service cost $75 per lawn")
- service_selectprice=75
- elif (service_select == FullLawnDetail):
- print('The Full Lawn Detail includes thorough Lawn Care, fertilizing, and tilling and reseeding all lawns listed')
- print("This service cost $100 per lawn")
- service_selectprice=100
- #Defining variable for room amount and requesting user input
- #Defining output based on user input
- #Small room count is anything less than 2
- #Medium room count is anything greater than or equal to 2 but less than or equal to 4
- #Large room count is anything greater than 4 but less than or equal to 20
- print("-"*45)
- room_amount=int(input('How many rooms do you need cleaned?:'))
- print("-"*45)
- if (room_amount < 2 and room_amount > 0):
- print('Perfect, you want a small house serviced')
- elif (room_amount < 0):
- print('MUST BE A POSITIVE NUMBER!')
- print ('Please try again, with a greater value but if you are curious')
- elif (room_amount >= 2 and room_amount <= 4):
- print("Awesome, that's a medium sized house")
- elif (room_amount > 4 and room_amount <= 20):
- print("Phenomenal, that's a large house!")
- elif (room_amount >20):
- print ('We apologize, we are only able to clean 20 rooms at a time')
- print ('Please try again, with a lesser value but if you are curious')
- pricing(service_selectprice,room_amount)
- def pricing(service_selectprice,room_amount):
- finalcost=(service_selectprice*room_amount)
- print("Your total will be: $",finalcost)
- return finalcost
- def main():
- greeting()
- serviceselection_lawncount()
- if __name__ == "__main__":
- main()
Add Comment
Please, Sign In to add comment