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
(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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
