Hire Experts For Answers
Order NowRelated Study Services
- Homework Answers
- Coursework writing help
- Term paper writing help
- Writing Help
- Paper Writing Help
- Research paper help
- Thesis Help
- Dissertation Help
- Case study writing service
- Capstone Project Writing Help
- Lab report Writing
- Take my online class
- Take my online exam
- Do my test for me
- Do my homework
- Do my math homework
- Online Assignment Help
- Do my assignment
- Essay Writing Help
- Write my college essay
- Write my essay for me
DESCRIPTION
Posted
Modified
Viewed
20
This is a intro to python course. This homework requires us to use graphics.py by Zelle, to plot traffic lights. Specifically, the requirements are included in the pdf file, and feel free to discuss any details with me. Thank you in advance
Attachments
Lab 9: More Graphics
Implementation Note:
Make sure that graphics.py is on the same directory where you keep
lab09.py
You can find graphics.py in brightspace → Week 4
The graphics library does not work in Jupyter Notebook
Question 1
In this exercise, you will write a Python program to simulate traffic lights graphically.
Implement the trafficLights function that does the following
Creates a Graphics Window of size 300 x 400, and is titled “Traffic Lights”. The window
should have a “Close button”, and three “lights” within a “frame” as shown in the figure
below;
If the user clicks on any of the “lights”, it should “turn on”, as shown below; For example,
if the user clicks on the top circle, the color should change from pink to red, if the user
clicks on the middle circle, it should turn from a lighter shade of yellow to a brighter
shade etc. You don’t have to get the colors exactly right but you need to make sure that
the color must differentiably change when a circle is clicked. Note that only one color
can be “on” at a time. So, if you have clicked on the red circle and it is on and another
click was detected in the yellow circle, the red circle must turn off i.e., the color changes
back to the lighter shade before the yellow light is turned on.
If “Close” is clicked, the window closes without any errors.
def trafficLights():
Parameters: -
Return value: the function returns a window object
The main is written for you
def main():
window = trafficLights()
main()
Important notes:
Comments: your program should have a header and comments that
explain the solution steps.
Save your file as lab09.py and upload it to Vocareum
Rubric
TASKS Distribution
Question 1: 100%
Total 100%
Explanations and Answers
0
No answers posted
Post your Answer - free or at a fee
NB: Post a homework question for free and get answers - free or paid homework help.
Get answers to: Python Grahics Homework (Using Graphics.py) or similar questions only at Tutlance.
Related Questions
- Adding Exceptions To Python Code
- Matlab Lab On Signals. Also Find Hidden Messege And Change Color Of Logo
- Identification Of Research Focus And Draft Hypotheses
- Data Structures - In Java Sorting
- Doctorate Program Application Essay
- I Need Help Regarding Assembly Language Homework.
- Discussion Questions For Python Class
- Write A C++ Program: Declare An Array Called Arraya Holds Integer Numbers, The Size Of The Array Is Entered By The User.
- Using C++, Write A Program Will Determine The Gross Wages Of Each Employee Type, Salaried And Hourly, And Output
- Data Analytics And Decision Making
- Test Forr Psychometric Assessments
- How To Code A Number Of Graphs (Pie Chart/Box Plot/Bar Charts/Stacked Bar Chart/Grouped Bar Chart) Using R Programming.
- The Questions Are A Texas Real Estate Agent License Courses - Law Of Contracts, Promulgated Forms, Law Of Agency
- Regression Subset With Transformations
- Machine Learning And Datasets
- Library Management System To Add And List Books,Etc
- Bootcamp Exercise Marker. A Program That Administers And Grades A Multiple-Choice Exam.
- Bootcamp Exercise Marker. A Program That Administers And Grades A Multiple-Choice Exam
- Evaluating A Small Survey File In R
- Evaluating A Small Survey File In R
- Evaluating A Small Survey File In R
- Neo4J Part -A Teamwork Assignment
- Java Debugging And Making Test
- Java Debugging And Making Test
- Qualitative Data Analysis For Individual Interviews
- Pycharm Task. Task 15: Check If The User Selected The Option For Processing Data.
- Highway Engineering Project Using Autocad
- Geographic Information Systems Mini Project (10 Slides) Of Evaluating Landslide Hazard Risk In Western Washington.
- I Need Help Modifying The Code
- I Need Help Modifying The Code
- C++ Oop Vehicle Management Program (Beginner)
- Lab 15 Gis Map Exercise - Site Suitability Analysis For A Wind Farm
- Write A Code For This Paper And Produce Table1
- Matlab Project Using Fea, Open-Ended Project
- Having Trouble With My R Assignment/Final. Stuck On Questions After Section C #6
- Urgent Matlab Code, Calculating Dynamic Stiffness Matrix And Frequency Response
- Urgent Matlab Code, Calculating Dynamic Stiffness Matrix And Frequency Response
- I Need Help Develpoing A Code For Bilinear Interpolation As Well As Qr Decomposition Using The Gram-Schmidt Process
- Assembly Language Programming X86
- Earthquake Engineering Project
- Data Analysis Using Computational Linear Algebra
- I Have A Matlab Exam On Friday 13Th 9:30Am Uk 24 Hour Exam
- Neural Networks And Deep Learning Assignment
- Given A Dataset, Create R Coding For Given Questions
- Needing Help With My Java Assessment Decision Making
- A Transmission Is Needed To Operate An Industrial Trash Compactor.
- Develop A Servlet That Can Analyze The Data Of Patients' Heart Beats Per Minute, Which It Will Accept In Json Format.
- Develop A Servelet That Will Analyze The Data Of Patients Heart Bpm In Json Format
- Need Someone To Do My Website Development Course Assignment- Small Assignment
- Matlab Assignment Code For Undergrad