290 likes | 298 Views
ProgramPad is a component of the AlgoTutor system that converts algorithms developed in Composer of AlgoTutor into C++ code. Learn how to use ProgramPad for new problems or when you have already developed an algorithm.
E N D
AlgoTutor Tutorial (3)Program Pad J. Yoo, S. Yoo, C. Pettey, S. Seo, and Z. Dong MTSU Computer Science Department Making the transition from the algorithm to the implementation (C++ code).
What is ProgramPad ? • ProgramPad is a component of the AlgoTutor system • It converts your algorithm developed in Composer of AlgoTutor into C++ code. • To use the ProgramPad, you need to first develop an algorithm for a given problem.
How to use ProgramPad For a new problem Start with an AlgoTutor problem exercise Solve the AlgoTutor problem Select the Corresponding ProgramPad exercise For a problem for which you have already developed an algorithm Simply select a ProgramPad exercise
How to use ProgramPad(for a new problem) Step 1: Start with an AlgoTutor problem exercise
How to use ProgramPad(for a new problem) Step 2: Solve the AlgoTutor problem
How to use ProgramPad(after you have developed an algorithm) Select a ProgramPad exercise
How to use ProgramPad(after you have developed an algorithm) Click “Solve” !
The first time you use ProgramPad for a problem you will need to load your algorithm
To load your algorithm, • click the drop down arrow (2) select your algorithm (AlgoTutor solution), then • (3) click the load button
The C++ code corresponding to your algorithm is in this pane
This pane contains the statements that need to be at the beginning of a C++ program
Your program variables are in this pane
Your algorithm does not contain C++ syntax, so you may need to add some things. For instance, this one is missing variable declarations
After typing the appropriate C++ code in this pane, you need to click The Save button. Then you can compile your program by clicking the Build button.
If your C++ syntax is correct, then you will see this notice.
Now you can select the data to run you program with, or use your input
Now click the Run button to execute your program
The results of your run will show up in a popup window. Notice any errors, then click close.
In the preceding run, the spacing was off and there was no purpose printed. So the solution can be altered by typing in the solution pane
After clicking Save, Build and Run, the new results are better.
If you do not see a new pop window, click here to minimize this window
Or Click here on the task bar
Pop-up window for printing your code Click here to print!
You are all done, so don’t forget to click the Done button. Make sure you print before You click done.