
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

Transcribed Image Text:Write a Python graphics program, using graphics.py from Chapter 4 of our textbook, to draws the following shape:
▪ window size: 250 x 250 pixels with window title with your name
▪ big circle, 60 pixels radius with center at (125, 125)
▪ two blue circles, 12 pixels radius; first one centered at (113, 113) and second centered at (137, 113)
▪ one red line, from (100, 150) to (150, 150)
Then answer this, what do you see? (make this a comment in your code)
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 1 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
- Write a program in Java that asks the user to input 10 numbers. The program must output square substract of last and first, last-1 and 2nd ... Example: Given numbers are: 1 3 4 5 6 9 10 12 0 11Result is: 100 9 64 25 9 More explanation: 100 = (11 -1)^2 9=(0-3)^2 64=(12-4)^2 25=(10-5)^2 9=(9-6)^2arrow_forwardWrite a Python Program that will simulate a registration system, as follows: Welcome: Display a message to welcome the user and ask for their info Capture user input: Ask the user to input the following information: o First name (String) Last name (String) o Age (integer) you must adjust value by subtracting 2 years Current GPA (float) you must adjust by adding 0.5 o Hobbies (only 3) (a string Collection containing 3 items) (all strings) Hint: you can ask user to specify each hobby one by one, and then you can update (or add) each item to the Collection Display user information: thank user for registration & show their info Goodbye: Display a Goodbye message and end Programarrow_forwardin Java please with comments. thank you!arrow_forward
- Write a program that reads a sequence of input values and displays a bar chart of the values, using asterisks - with captions- like this: Egypt ********************* France***************************** Japan ************************ Uruguay ******************** Switzerland **********arrow_forwardC. Create a "Magic 8 Ball" Java program with a GUI using JavaFX. Minimum requirements: Use at least one layout pane to organize and contain nodes (e.g. Pane, Stack Pane, Flow Pane, Grid Pane, Border Pane, HBox, VBox) Use at least two graphics elements (e.g. shapes or images). Make some of your shapes filled and others unfilled. Both shapes must be different. Use at least three JavaFX User Interface (UI) controls (e.g. Label, Button, Check Box, Test Field, Text Area, Combo Box, List View, Scroll Bar, Slider. At least two of the three must be different. Use at least two common “set” properties or methods for nodes (e.g. setTitle (for Stage), setFill or setFont (for Text), setValue (for ComboBox) Use at least two common “get” properties or methods for nodes (e.g. getValue (for ComboBox), getText (for TextField)) Handle at least one user generated event (e.g. button click, mouse click, etc.)arrow_forwardWrite in Java and use JOptionPane.showInputDialog Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. When the program begins, a random number is ranged of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper, If the number is 3, then the computer has chosen scissors. (Don’t display the computer’s choice yet.) The user enters his or her choice of “rock”, “paper”, or “scissors” at the key-board. (You can use a menu if you prefer.) The computer’s choice is displayed. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.) If one player chooses paper and the other player chooses rock, then paper wins.…arrow_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