Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hey. this program is meant to print a house and sun thats pre made onto the canvas given a user input. it does work but
hey. this program is meant to print a house and sun thats pre made onto the canvas given a user input. it does work but how would i code in a roof and door that would move with the house.
ect Eemainpy ToundationKEIGHT - HEIGAT - HEIGMT (C t) 2 rect(0, founoationhEIGKT, WIDTH, heIGHT) Mountola grevese housexLoccenter = float (1nput ('Enter Hovse x Location:' ) ) hooserLoctoner = float(input('Enter House Y Location:')) househitent =250 hovsentpTh =300 setcolor ('chocolate') rect (houseXioccenter - housentoth/2, houserLecloner - housentient, houseItoth, househeIewi) HHouse - roof rsyn sunL1DTA =100 sunxcelmes = float(input('enter Sun x Location: ')) sunceali=R = float(1nput('Enter sun Y Location:' ') setcoter('gold') ythonProject Inain. py to specify, user input would move the house to the designated spot and the roof and door would just to be stuck to it and move with it.
hope this makes sense, thanks.
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