algotutor tutorial (3) program pad
DESCRIPTION
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 - PowerPoint PPT PresentationTRANSCRIPT
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 1. Start with an AlgoTutor problem
exercise2. Solve the AlgoTutor problem3. Select the Corresponding
ProgramPad exercise
For a problem for which you have already developed an algorithm
1. 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” !
You can now see your algorithm turned into C++ code!!
January 13, 3:35 PM
The first time you use ProgramPad for a problem you will need to load your algorithm
January 13, 3:35 PM
To load your algorithm, (1)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 buttonto 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, Buildand Run, the new results
are better.
You want to test with your own input values?
You want to print code ?
Click “Print” !
If you do not see a new pop
window, click here to minimize
this window
OrClick here on the
task bar
Click here to print!
Pop-up window for printing your code
You are all done, so don’t forgetto click the Done
button.Make sure you print before
You click done.
You have now successfully completed a ProgramPad exercise!