Question: In Python (1) Create an input data text file containing the following records (see reverse side for a description of the format P 5 1.7

In Python In Python (1) Create an input data text file containing the

(1) Create an input data text file containing the following records (see reverse side for a description of the format P 5 1.7 4.9 6.1 6.2 7.0 2.8 4.8 0.1 1.5 1.4 R4 7.0 5.0 1.0 5.0 1.0 3.0 7.0 3.0 P4 4.1 5.4 6.9 2.5 2.9 0.8 0.9 2.5 P3 1.2 4.7 6.5 4.2 4.0 1.7 (2) Write a main (root) program that echo checks the data. Your output should look like: Reading vertices for a polygon with 5 vertices... Vertex 1 has coordinates at (1.70, 4.90) Vertex 2 has coordinates at (6.10, 6.20) Vertex 5 has coordinates at (1.50, 1.40) Reading vertices for a rectangle having, (of course), 4 vertices... Vertex 1 has coordinates at (7.00, 5.00) ...

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!