Question: The file spHWselectionData.txt contains data describing five rectangles, one rectangle per line Each line consists of four floating-point numbers separated by a space with the
The file spHWselectionData.txt contains data describing five rectangles, one rectangle per line Each line consists of four floating-point numbers separated by a space with the first two defining the lower-left corner of the rectangle, label A in drawing, and the last two defining the upper-right corner of the rectangle, label c in drawing All rectangles will be in the orientation shown below Wite a program that will ead the data for a single rectangle and determine the following. Any floating-point value should be displayed with four decimal places s a square . The (x, y) coordinates of comers B and p . The perimeter of the rectangle . The quadrant or quandrants in which the rectangle resides it the rectangle spans more than one quadrant each quadrant in which any part of the rectangle resides should be listed Quadrant II Quadrant l
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
