Question
Write a program to find the character sequence PA (3460hpgl.hpg). After each PA, there is a number, a comma, and another number. Read each number
Write a program to find the character sequence "PA" (3460hpgl.hpg). After each PA, there is a number, a comma, and another number. Read each number pair (x and y values), and print them (to the console screen and to a file) in the form shown below. Place comments beside each while statement and if statement stating what that one line of computer code does. Also, above each if and while statement, write a short description of what will be done withe the code controlled by those statements. Also, comment the program appropriately.
x = 12345, y = 6789
x = 5431, y = 789
This is the text in the '3460hpgl.hpg' file:
.(;.I81;;17:.N;19:IN;SC;PU;PU;SP7;LT;VS36;PU;PA-19485,-12150;PD;PA-16883,-10118;PA-16292,-14387;PA-19485,-12150;PU;PA0,0;SP;EC;PG1;EC1;OE;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started