Question: please quicklyyyyyy 1. Write a program that prompts the user to enter: 1. height and width of rectangle (xy) 2. enter a point (p1, p2)

 please quicklyyyyyy 1. Write a program that prompts the user to
please quicklyyyyyy
enter: 1. height and width of rectangle (xy) 2. enter a point

1. Write a program that prompts the user to enter: 1. height and width of rectangle (xy) 2. enter a point (p1, p2) 3.call a function Checks whether the point is within the rectangle centered at (0,0) with width x and height y. For example, (2, 2) is inside the rectangle of 10 as width and 5 as the height, but (6, 4) is outside this rectangle, as shown in the Figure. Your program should read rectangle width and height until user enter O width and height (22) (0,0) Your program should read rectangle width and height until user enter O width and height 16, (90) Here are sample runs of the program: Enter Height and width of Rectangle, (0 width or O height ) to Stop: 10 5 Enter pint (x,y) Values to check if it's inside rectangle : 2.2 Point (2.00, 2.00) is INSIDE the rectangle of (width, height)=((10.00, 5.00) Enter Height and Width of Rectangle, 10 width or O height ) to Stop: 10 5 Enter pint (x,y) Values to check if it's inside rectangle: 64 Point 16.00, 4.00) is OUTSIDE the rectangle of (width, height) = ((10.00, 5.00) Enter Height and Width of Rectangle(0 width or O height ) to Stop:00 Illegal Rectangle width and height 1. Write a program that prompts the user to enter: 1. height and width of rectangle (xy) 2. enter a point (p1, p2) 3.call a function Checks whether the point is within the rectangle centered at (0,0) with width x and height y. For example, (2, 2) is inside the rectangle of 10 as width and 5 as the height, but (6, 4) is outside this rectangle, as shown in the Figure. Your program should read rectangle width and height until user enter O width and height (22) (0,0) Your program should read rectangle width and height until user enter O width and height 16, (90) Here are sample runs of the program: Enter Height and width of Rectangle, (0 width or O height ) to Stop: 10 5 Enter pint (x,y) Values to check if it's inside rectangle : 2.2 Point (2.00, 2.00) is INSIDE the rectangle of (width, height)=((10.00, 5.00) Enter Height and Width of Rectangle, 10 width or O height ) to Stop: 10 5 Enter pint (x,y) Values to check if it's inside rectangle: 64 Point 16.00, 4.00) is OUTSIDE the rectangle of (width, height) = ((10.00, 5.00) Enter Height and Width of Rectangle(0 width or O height ) to Stop:00 Illegal Rectangle width and height

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!