Geocrack

lawncount

Jul 3rd, 2022 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.72 KB | None | 0 0
  1. #Greeting  
  2.  
  3. def greeting():
  4.           print('We will do our best to satisfy your cleaning needs, money back guarantee!')
  5.  
  6.           print('We offer the following services, "LawnCare", "Deep Cleaning", and " Full Lawn Detail "')
  7.  
  8.           print('Each one of these services offer their own set of perks')
  9.          
  10.  
  11. def serviceselection_lawncount():
  12.     LawnCare=str.lower('LawnCare')
  13.     LawnGrooming=str.lower('DeepCleaning')
  14.     FullLawnDetail=str.lower('FullLawnDetail')
  15.     print("-"*45)
  16.     service_select= input('Which service would you like?:').lower().replace(" ", "")
  17.     print("-"*45)
  18.     if (service_select == LawnCare):
  19.             print('The LawnCare service includes thorough Lawn Care of all the lawns listed')
  20.             print("This service cost $45 per lawn")
  21.             service_selectprice=45
  22.     elif (service_select == LawnGrooming):
  23.             print('The Lawn Grooming service includes the thorough Lawn Care package, fertilizing, and tilling')
  24.             print("This service cost $75 per lawn")
  25.             service_selectprice=75
  26.     elif (service_select == FullLawnDetail):
  27.             print('The Full Lawn Detail includes thorough Lawn Care, fertilizing, and tilling and reseeding all lawns listed')
  28.             print("This service cost $100 per lawn")
  29.             service_selectprice=100
  30.  
  31. #Defining variable for room amount and requesting user input
  32.  
  33. #Defining output based on user input
  34.  
  35. #Small room count is anything less than 2
  36.  
  37. #Medium room count is anything greater than or equal to 2 but less than or equal to 4
  38.  
  39. #Large room count is anything greater than 4 but less than or equal to 20
  40.     print("-"*45)
  41.     room_amount=int(input('How many rooms do you need cleaned?:'))
  42.     print("-"*45)
  43.     if (room_amount < 2 and room_amount > 0):
  44.          print('Perfect, you want a small house serviced')
  45.     elif (room_amount < 0):
  46.             print('MUST BE A POSITIVE NUMBER!')
  47.             print ('Please try again, with a greater value but if you are curious')
  48.     elif (room_amount >= 2 and room_amount <= 4):
  49.             print("Awesome, that's a medium sized house")
  50.     elif (room_amount > 4 and room_amount <= 20):
  51.             print("Phenomenal, that's a large house!")
  52.     elif (room_amount >20):
  53.             print ('We apologize, we are only able to clean 20 rooms at a time')
  54.             print ('Please try again, with a lesser value but if you are curious')
  55.  
  56.     pricing(service_selectprice,room_amount)
  57.  
  58.  
  59. def pricing(service_selectprice,room_amount):
  60.     finalcost=(service_selectprice*room_amount)
  61.     print("Your total will be: $",finalcost)
  62.     return finalcost
  63.            
  64.  
  65. def main():
  66.     greeting()
  67.     serviceselection_lawncount()
  68.  
  69. if __name__ == "__main__":
  70.     main()
  71.  
  72.  
Add Comment
Please, Sign In to add comment