у-ахis (9, 9) (4, 5) (0,0) х-ахis (a)

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter4: Processor Technology And Architecture
Section: Chapter Questions
Problem 2VE: ________________ generates heat in electrical devices.
icon
Related questions
Question

Write a program that prompts the user to enter a
point (x, y) and checks whether the point is within the circle centered at (0, 0) with
radius 10. For example, (4, 5) is inside the circle and (9, 9) is outside the circle, as
shown in Figure 
(Hint: A point is in the circle if its distance to (0, 0) is less than or equal to 10.
The formula for computing the distance is

   __________________
√(x2 - x1)2 + (y2 - y1)2.
 Test your program to cover all cases.) Two sample runs are shown below:

 

Enter a point with two coordinates: 4 5 ↵Enter
Point (4.0, 5.0) is in the circle

у-ахis
(9, 9)
(4, 5)
(0,0)
х-ахis
(a)
Transcribed Image Text:у-ахis (9, 9) (4, 5) (0,0) х-ахis (a)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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.
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning