Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— 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 1.Start with an AlgoTutor problem exercise 2.Solve the AlgoTutor problem 3.Select the Corresponding ProgramPad exercise For a problem for which you have already developed an algorithm 1.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 January 13, 3:35 PM The first time you use ProgramPad for a problem you will need to load your algorithm

10 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

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 Click here to print! Pop-up window for printing your code

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!


Download ppt "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."

Similar presentations


Ads by Google