Question: Write a program in C++ to find the character sequence PA (3460hpgl.hpg). After each PA, there is a number, a comma, and another number. Read

Write a program in C++ 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

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!