Lazer Cutter
In this project, I used C++ to create program that simulates a CNC machine using pointers to keep track of the lasers position. The program begins by asking the user to enter in the file name of a text file that has a list of commands that will cut out their design using the CNC machine. The valid commands are "I", "O", "R", "L", and "A n" with only one command on each line. The "I" command tells the laser to move inward and begin cutting. The "O" command tells the laster to move outward and stop cutting. The "R" command tells the laser to turn to the right. The "L" command tells the laster to turn to the left. Finally, the "A n" command tells the laser to move n spaces in the direction the laser is currently facing, where n is an integer <= 80.