SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
1. (10 points) Problem 1 gives you practice creating and manipulating graphical objects. a. (7
points) Write a program target1.py as described in Programming Exercise 2 on page 126 of the
textbook ( 2nd edition page 118). b. (3 points) Modify your program from part (a) above to make
it interactive. Allow the user to specify the diameter of the outermost circle of the target. You
may get this value from the user in a similar manner as the principal and apr were obtained in the
futval_graph2.py program on page 105 of the textbook (2 2nd edition page 101). You will need
to have the graphics window adjust its size to accommodate the archery target that will be
created within it. Save your new program as target2.py. Hint: You will ask the user for the
diameter of the archery target. How is this related to the radius of the inner circle? The larger
circles' radii can be expressed as multiples of this value. Submit your responses to Problem 1 as
two separate modules (target1.py and target2.py). 2. (15 points) Problem 2 gives you practice
with interactive graphics that use mouse clicks rather than the console to get user input. It also
gives your practice using coordinate transformation to make placing text in the window easier. a.
(10 points) Write a program line1.py as described in Programming Exercise 8 on page 127 of the
textbook ( 2nd edition page 119).
b. (5 points) Modify your program from part (a) so you have a second program named line2.py.
This program will have the midpoint labeled, offset slightly from the actual location of the
midpoint of the line. Hint: To create labels that combine text and numerical values, you may find
using the type conversion function str() helpful. For more, see page 152 of the textbook ( 2nd
edition page 146). Submit your responses to Problem 2 as two separate modules (line1.py and
line2.py). Details: As you have done on the earlier homeworks, add comments to your Python
programs describing what a line or a block of code is meant to accomplish, including your name,
and other important details as a title header at the beginning of the module. Turn In: Submit all
of your python programs for this assignment as .py files, a total of 4 modules.

Mais conteúdo relacionado

Semelhante a 1. (10 points) Problem 1 gives you practice creating and manipulating.pdf

Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxAASTHA76
 
EN3085 Assessed Coursework 1 1. Create a class Complex .docx
EN3085 Assessed Coursework 1  1. Create a class Complex .docxEN3085 Assessed Coursework 1  1. Create a class Complex .docx
EN3085 Assessed Coursework 1 1. Create a class Complex .docxgidmanmary
 
C++ Overview
C++ OverviewC++ Overview
C++ Overviewkelleyc3
 
Content
Content Content
Content o3aroo
 
Gsp 215 Effective Communication / snaptutorial.com
Gsp 215  Effective Communication / snaptutorial.comGsp 215  Effective Communication / snaptutorial.com
Gsp 215 Effective Communication / snaptutorial.comHarrisGeorg21
 
Gsp 215 Enhance teaching-snaptutorial.com
Gsp 215 Enhance teaching-snaptutorial.comGsp 215 Enhance teaching-snaptutorial.com
Gsp 215 Enhance teaching-snaptutorial.comrobertleew18
 
C programming session 08
C programming session 08C programming session 08
C programming session 08Vivek Singh
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answersRandalHoffman
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comStephenson22
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comWilliamsTaylorza48
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.comHarrisGeorg12
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docxamrit47
 
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...bhargavi804095
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6helpido9
 

Semelhante a 1. (10 points) Problem 1 gives you practice creating and manipulating.pdf (18)

Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
EN3085 Assessed Coursework 1 1. Create a class Complex .docx
EN3085 Assessed Coursework 1  1. Create a class Complex .docxEN3085 Assessed Coursework 1  1. Create a class Complex .docx
EN3085 Assessed Coursework 1 1. Create a class Complex .docx
 
C++ Overview
C++ OverviewC++ Overview
C++ Overview
 
Content
Content Content
Content
 
Gsp 215 Effective Communication / snaptutorial.com
Gsp 215  Effective Communication / snaptutorial.comGsp 215  Effective Communication / snaptutorial.com
Gsp 215 Effective Communication / snaptutorial.com
 
Gsp 215 Enhance teaching-snaptutorial.com
Gsp 215 Enhance teaching-snaptutorial.comGsp 215 Enhance teaching-snaptutorial.com
Gsp 215 Enhance teaching-snaptutorial.com
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
Readme trainer
Readme trainerReadme trainer
Readme trainer
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docx
 
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...
cpp-streams.ppt,C++ is the top choice of many programmers for creating powerf...
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
 

Mais de alpha1211

1. Describe how personal health practices and physical health influe.pdf
1. Describe how personal health practices and physical health influe.pdf1. Describe how personal health practices and physical health influe.pdf
1. Describe how personal health practices and physical health influe.pdfalpha1211
 
1. describe how language both reflects and influences the way differ.pdf
1. describe how language both reflects and influences the way differ.pdf1. describe how language both reflects and influences the way differ.pdf
1. describe how language both reflects and influences the way differ.pdfalpha1211
 
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdfalpha1211
 
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdfalpha1211
 
1. Construct individual FAs for the following CJava language constr.pdf
1. Construct individual FAs for the following CJava language constr.pdf1. Construct individual FAs for the following CJava language constr.pdf
1. Construct individual FAs for the following CJava language constr.pdfalpha1211
 
1. Create a correctly-formatted and titled table for all four ecoz.pdf
1. Create a correctly-formatted and titled table for all four ecoz.pdf1. Create a correctly-formatted and titled table for all four ecoz.pdf
1. Create a correctly-formatted and titled table for all four ecoz.pdfalpha1211
 
1. Complete a comparative report on concrete versus abstract message.pdf
1. Complete a comparative report on concrete versus abstract message.pdf1. Complete a comparative report on concrete versus abstract message.pdf
1. Complete a comparative report on concrete versus abstract message.pdfalpha1211
 
1. Completely fill out the KT-PA Worksheet using the guide questions.pdf
1. Completely fill out the KT-PA Worksheet using the guide questions.pdf1. Completely fill out the KT-PA Worksheet using the guide questions.pdf
1. Completely fill out the KT-PA Worksheet using the guide questions.pdfalpha1211
 
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdfalpha1211
 
1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdfalpha1211
 
1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdfalpha1211
 
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdfalpha1211
 
1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdfalpha1211
 
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdfalpha1211
 
1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdfalpha1211
 
1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdfalpha1211
 
1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdfalpha1211
 
1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdfalpha1211
 
1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdfalpha1211
 
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdfalpha1211
 

Mais de alpha1211 (20)

1. Describe how personal health practices and physical health influe.pdf
1. Describe how personal health practices and physical health influe.pdf1. Describe how personal health practices and physical health influe.pdf
1. Describe how personal health practices and physical health influe.pdf
 
1. describe how language both reflects and influences the way differ.pdf
1. describe how language both reflects and influences the way differ.pdf1. describe how language both reflects and influences the way differ.pdf
1. describe how language both reflects and influences the way differ.pdf
 
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf
1. Definir los cuatro elementos de un contrato v�lido.2. Describa .pdf
 
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf
1. Describa algunos de los desaf�os en la creaci�n de un equipo cohe.pdf
 
1. Construct individual FAs for the following CJava language constr.pdf
1. Construct individual FAs for the following CJava language constr.pdf1. Construct individual FAs for the following CJava language constr.pdf
1. Construct individual FAs for the following CJava language constr.pdf
 
1. Create a correctly-formatted and titled table for all four ecoz.pdf
1. Create a correctly-formatted and titled table for all four ecoz.pdf1. Create a correctly-formatted and titled table for all four ecoz.pdf
1. Create a correctly-formatted and titled table for all four ecoz.pdf
 
1. Complete a comparative report on concrete versus abstract message.pdf
1. Complete a comparative report on concrete versus abstract message.pdf1. Complete a comparative report on concrete versus abstract message.pdf
1. Complete a comparative report on concrete versus abstract message.pdf
 
1. Completely fill out the KT-PA Worksheet using the guide questions.pdf
1. Completely fill out the KT-PA Worksheet using the guide questions.pdf1. Completely fill out the KT-PA Worksheet using the guide questions.pdf
1. Completely fill out the KT-PA Worksheet using the guide questions.pdf
 
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
 
1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf
 
1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf
 
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
 
1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf
 
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
 
1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf
 
1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf
 
1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf
 
1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf
 
1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf
 
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
 

Último

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Último (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

1. (10 points) Problem 1 gives you practice creating and manipulating.pdf

  • 1. 1. (10 points) Problem 1 gives you practice creating and manipulating graphical objects. a. (7 points) Write a program target1.py as described in Programming Exercise 2 on page 126 of the textbook ( 2nd edition page 118). b. (3 points) Modify your program from part (a) above to make it interactive. Allow the user to specify the diameter of the outermost circle of the target. You may get this value from the user in a similar manner as the principal and apr were obtained in the futval_graph2.py program on page 105 of the textbook (2 2nd edition page 101). You will need to have the graphics window adjust its size to accommodate the archery target that will be created within it. Save your new program as target2.py. Hint: You will ask the user for the diameter of the archery target. How is this related to the radius of the inner circle? The larger circles' radii can be expressed as multiples of this value. Submit your responses to Problem 1 as two separate modules (target1.py and target2.py). 2. (15 points) Problem 2 gives you practice with interactive graphics that use mouse clicks rather than the console to get user input. It also gives your practice using coordinate transformation to make placing text in the window easier. a. (10 points) Write a program line1.py as described in Programming Exercise 8 on page 127 of the textbook ( 2nd edition page 119). b. (5 points) Modify your program from part (a) so you have a second program named line2.py. This program will have the midpoint labeled, offset slightly from the actual location of the midpoint of the line. Hint: To create labels that combine text and numerical values, you may find using the type conversion function str() helpful. For more, see page 152 of the textbook ( 2nd edition page 146). Submit your responses to Problem 2 as two separate modules (line1.py and line2.py). Details: As you have done on the earlier homeworks, add comments to your Python programs describing what a line or a block of code is meant to accomplish, including your name, and other important details as a title header at the beginning of the module. Turn In: Submit all of your python programs for this assignment as .py files, a total of 4 modules.