Question: 3.28 Point and Rectangle Create the design for determining if a point is inside, on, or outside of the rectangle. Drawing out the rectangle and

 3.28 Point and Rectangle Create the design for determining if a
point is inside, on, or outside of the rectangle. Drawing out the

3.28 Point and Rectangle Create the design for determining if a point is inside, on, or outside of the rectangle. Drawing out the rectangle and labeling the coordinates of all points will help you to visualize the problem Once the design has been completed, write a program that prompts the user for the x and y coordinates for the lower left hand corner of a rectangle as well as the height and the width of the rectangle. After that, you will need to get the coordinates for the point from the user as well. Once all inputs have been entered by the user, determine if the point is inside the rectangle, on the rectangle, or outside the rectangle. If the point is inside the rectangle, print inside the rectangle. If the point is on the rectangle, print on the rectangle". If the point is outside of the rectangle, print outside the rectangle Example output Enter the x coordinate of the lower left hand come of the rectangle 1 Enter the y coordinate of the lower left hand come of the rectangle 1 Enter the height of the rectangle, 5 Enter the width of the rectangle: 3 Enter the x coordinate of the point 2 Enter the y coordinate of the point 1 on the rectangle There are 10 tests. They test for the point being in the rectangle, on the rectangle and outside the rectangle. They also fest with different points for the rectangle and different coordinates for the point. One test test tests for correct white spot but the other tests do not Ench test is worth 10 points write code it in Clanguage without comments. CAN YOU MAKE TOO WERE I CAN COPY IT THANKS, I WILL GIVE IT A THUMBS UP

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!