1 / 29

AlgoTutor Tutorial (3) Program Pad

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.

jpriscilla
Download Presentation

AlgoTutor Tutorial (3) Program Pad

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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).

  2. 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.

  3. 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

  4. How to use ProgramPad(for a new problem) Step 1: Start with an AlgoTutor problem exercise

  5. How to use ProgramPad(for a new problem) Step 2: Solve the AlgoTutor problem

  6. How to use ProgramPad(after you have developed an algorithm) Select a ProgramPad exercise

  7. How to use ProgramPad(after you have developed an algorithm) Click “Solve” !

  8. You can now see your algorithm turned into C++ code!!

  9. The first time you use ProgramPad for a problem you will need to load your algorithm

  10. To load your algorithm, • click the drop down arrow (2) select your algorithm (AlgoTutor solution), then • (3) click the load button

  11. The C++ code corresponding to your algorithm is in this pane

  12. This pane contains the statements that need to be at the beginning of a C++ program

  13. Your program variables are in this pane

  14. Your algorithm does not contain C++ syntax, so you may need to add some things. For instance, this one is missing variable declarations

  15. 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.

  16. If your C++ syntax is correct, then you will see this notice.

  17. Now you can select the data to run you program with, or use your input

  18. Now click the Run button to execute your program

  19. The results of your run will show up in a popup window. Notice any errors, then click close.

  20. 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

  21. After clicking Save, Build and Run, the new results are better.

  22. You want to test with your own input values?

  23. You want to print code ?

  24. Click “Print” !

  25. If you do not see a new pop window, click here to minimize this window

  26. Or Click here on the task bar

  27. Pop-up window for printing your code Click here to print!

  28. You are all done, so don’t forget to click the Done button. Make sure you print before You click done.

  29. You have now successfully completed a ProgramPad exercise!

More Related