
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Need help with this python program.

Transcribed Image Text:USA
OLYMPIC TEAM
e
The USA flag must be drawn by calling a python function (you need to modify the code
provided) to draw the USA flag.
Name
Program
Current Time
Sha
olympic rings py
: 2021-07-12 15:27:30
You need to write a function drawCircle(x, y, color) which will draws a circle which takes
coordinates x position, y position and the color of the circle. All five rings must be drawn using
the drawCircule function.
You need to call drawCircle(x, y, color) for each of the 5 rings so the Olympic ring will be draw at
right coordinates with correct ring color similar to the 5 Olympic rings above. The text "USA
OLYMPIC TEAM" must be "Helvetica", font-size is 60, bold and color is blue.
Your program needs to have print_me_first() function similar to all previous lab, but print it out
at the bottom of the screen on the right hand side below the ring similar to the screen output I
have provided.

Transcribed Image Text:Lab assignment requirement: Lab 7 - Olympic Rings
Your assignment is to write python program to draw a graph using python turtle similar to the
Olympic graph one below:
1. Draw a USA flag (use the code I provided, but you MUST change the code I
provided to a function draw_USA_flag() and save the function to another
python program name such as draw_USA_flag.py. This file must be saved in the
same folder/directory where you have this lab python program is at. Then you
can import draw_USA_flag.py in your main python program for this lab (import
draw_USA_flag).
2. Write "USA OLYMPIC TEAM" on the top of the page.
3.
Place a USA map as the background of the screen (use the usa.png file I
provided). Use turtle.bgpic() function.
4.
Draw Olympic Rings (5 rings) using function (you need create a function that
draws the ring) to draw each ring. So you need to call the draw ring function 5
times to draw each of the five Olympic rings. Each ring must be blue, yellow,
black, green, and red which is official Olympic ring colors.
5. Place your name (similar to print_me_first) at the right hand side bottom of the
screen. You MUST add program name as part of the print_me_first function
using argument variable.
6. In your lab python program, you should have saved the draw USA flag to
draw_USA_flag.py file in the same folder/directory where your this lab python
program is at. You should save print me to print_me_first.py file. you should
import the following python modules/programs:
import turtle
import draw_USA_flag
import print_me_first
7. You program should output simple to below:
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 7 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- would you have any idea for a python code that includes : File I/O, Regular Expressions, Object Orientated Programming, Tkinter GUI many thanks for your help .arrow_forwardSo, I was hoping that I could get help for this. I need this as a python code and file please. The variables, just make them letters and/or numbers, maybe a few food words. The printing, just make it able to be printed onto a notepad that would be made by the script as well and be on the desktop or in the downloads folder. I would very much appreciate the help since I haven't done Python in so long and need help with this! It MUST be python code and if you could just take a screenshot of the code as an answer to this or send me the .py file that would be greatly appreciated! If a screenshot, please be the entire script.arrow_forwardPlease answer 2 python questions. Thank you.arrow_forward
- Use Python to program a Magic Eight Ball.arrow_forwardPython Help Write (1) the pseudo code, (2) the code, of the following problems: An online bank wants you to create a program that shows prospective customers how their deposits will grow. Your program should read the initial balance and the annual interest rate. Print out the balance after the first three years.arrow_forwardwrite python program ?Every Sunday through Thursday you go to class. When it is raining you take an umbrellaBut on the weekend (Friday, Saturday), what you do depends on the weatherIf it is raining you read in bed Otherwise, you have fun outdoorsarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education