Good could you help me make a code that I draw 3 yellow flowers and say winnin happy day friend well nice I need for whi mmh wwwwww the code is displayed and valid in the app Pydroid 3

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Good could you help me make a code
that I draw 3 yellow flowers and say
happy day friend well nice I need for
minhhimnh mình
the code is displayed and valid in the
app Pydroid 3
Transcribed Image Text:Good could you help me make a code that I draw 3 yellow flowers and say happy day friend well nice I need for minhhimnh mình the code is displayed and valid in the app Pydroid 3
Expert Solution
Step 1: Algorithm :

Algorithm to Draw Three Yellow Flowers with a Message

1. Import the Turtle graphics library.

2. Set the screen size using `turtle.screensize(400, 400)`.

3. Define a function called `draw_flower` to draw a larger yellow flower:
   a. Set the Turtle color to yellow.
   b. Begin filling the shape.
   c. Repeat the following 36 times:
      i. Move forward by 30 units (increase for larger flowers).
      ii. Turn left by 170 degrees.
   d. End filling the shape.

4. Draw three larger yellow flowers:
   a. Repeat the following 3 times:
      i. Call the `draw_flower` function to draw a flower.
      ii. Lift the pen up.
      iii. Move forward by 100 units.
      iv. Put the pen down.

5. Move the Turtle to the center of the screen:
   a. Lift the pen up.
   b. Go to the position (-50, -120) to position the message.
   c. Put the pen down.

6. Write the message "Happy day friend" under the flowers:
   a. Use the Turtle's `write` method to display the message.
   b. Set the font to Arial, size 20, and bold.

7. Keep the window open until the user closes it using `turtle.done()`.

End of Algorithm.

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education