Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Place the graphics.py file (available from http://mcsp.wartburg.edu/zelle/python/) in the same location as the program i will be doing. This program must also compute the intersection

Place the graphics.py file (available from http://mcsp.wartburg.edu/zelle/python/) in the same location as the program i will be doing.

This program must also compute the intersection of a circle with a horizontal line and displays the information textually and graphically.

Input: Radius of the circle and the y-intercept of the line. Prompt the user for these values.

Output: Draw a circle centered at (0,0) with the given radius in a window with coordinates running from (-10,-10) to (10,10).

Draw a horizontal line across the window with the given y-intercept.

Draw the two points of intersection in red.

Print out the x values of the points of intersection in the upper left-hand corner of the window.

Formula for the intersection values of x:

where r is the radius and y is the y-intercept.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago