Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help fixing my code! I know its wrong i just dont know how to fix it elcone(): this function displays the Welcone message
I need help fixing my code! I know its wrong i just dont know how to fix it
elcone(): this function displays the Welcone message rint ("Inhelcome to your cleaning service, Snipgy quicks!") int("InThis progran will calculate the cost of cleaning your house bosed to the cteaning service and size of the house.") user input for service, type of cleaning and anount of roons GetUserInput (): ePrompt the user for the type of cleaning service they need service = input ("InPlease print the type of service needed, either floors or windous. ") nvatidate user input for floors or windows and if not a vatid response reprompt if (service = "floors"): servicecost =15 etuf (service = ="windows"): servicecost =5 etset print("*-Invatid Inputwn) service = input ("Please print the type of service needed either floors ar windows. ") Fprompt user for clean type elther complete or Hight clean full = input("What kind of cleaning do you vant? Type light or coaplete. ") Watidate user input if (tult = "conplete"): addedExpense =50 Clif (full w inght = (igh ) addedExpense =0 etse: print("*oInvalid Responsecv") fult = input(- What kind of cleaning do you want? Type tight or conplete. ") Moronpt user for anount of roons cleaned asount of cooms = int (10put ("Mow many roons did you clean? ")) Inalidate user input for asount of rooms cteaned for price of roon cost if (anount of rooas =10 elit (anount of roons 7 ) : Hooncost i 20 elit (asount_of roons kie10)+ Pooncost =25 elset. print("qntovalia Response*s") asount of roons = int (input ("Bow nany coons did you cleanz")) Healeulate the total cost of cleoning totol cleanino - servicecost + addedexpense + Rooscost printecyear total price is", total cleaningl 0displays the cteaning cost and inforaation seeded det displaycht print("tovitmank you for your bervicel") Seain function calts back all the other tunctions Ger moin()t Molcane sessage function celcotel? gpropot user tor venice cout, added expense nad roos cost Getusertiput() goinptay \#isplayti sficecute cade Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started