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.

Slides:



Advertisements
Similar presentations
AlgoTutor Tutorial (1) Composing an algorithm using AlgoTutor J. Yoo, S. Yoo, C. Pettey, S. Seo, and Z. Dong MTSU Computer Science Department.
Advertisements

Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
AlgoTutor Tutorial (2) Refining an algorithm J. Yoo, S. Yoo, C. Pettey, S. Seo, and Z. Dong MTSU Computer Science Department.
AlgoTutor Tutorial (5) The Partial Solution Exercise J. Yoo, S. Yoo, C. Pettey, S. Seo, and Z. Dong MTSU Computer Science Department.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
String Variables Visual Basic for Applications 4.
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Program design example Task: Develop an algorithm expressed in pseudocode for a specified problem specified problem.
EGR 141 Computer Problem Solving in Engineering and Computer Science Interfacing with a Database in Visual Basic.NET 2005.
Writing algorithms using the while-statement. Previously discussed Syntax of while-statement:
Writing algorithms using the for-statement. Programming example 1: find all divisors of a number We have seen a program using a while-statement to solve.
1 ONE TIME PRINT SETUP To print Requisitions from Banner, follow this process once: Open Microsoft Excel, select (1) TOOLS, then (2) MACROS, then (3) SECURITY.
Access Tutorial 10 Automating Tasks with Macros
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
AlgoTutor Tutorial (4) Using the Virtual Machine Component of AlgoTutor J. Yoo, S. Yoo, C. Pettey, S. Seo, and Z. Dong MTSU Computer Science Department.
GDT Development Tutorial. GDT Development Tutorial Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas,
CPSC1301 Computer Science 1 Overview of Dr. Java.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Computer Programming 2 Lab(1) I.Fatimah Alzahrani.
FIRST GADGETEER PROJECT. Where are you? Making a VS project Parts of a C# program Basics of C# syntax Debugging in VS Questions? 2.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
9/2/ CS171 -Math & Computer Science Department at Emory University.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
HPCC Mid-Morning Break Dirk Colbry, Ph.D. Research Specialist Institute for Cyber Enabled Discovery TotalView Parallel Debugger.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
Introduction To Greenfoot
The Hashemite University Computer Engineering Department
Installing Java on a Home machine For Windows Users: Download/Install: Go to downloads html.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Controlling Program Flow with Decision Structures.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
Introduction to Programming Python Lab 6: Relational Operators and Boolean Variables 12 February PythonLab6 lecture slides.ppt Ping Brennan
Introduction to Programming Python Lab 8: Loops 26 February PythonLab8 lecture slides.ppt Ping Brennan
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Introduction to Programming
Introduction to Programming
In the beginning… software
How to Register OSLIS 2.0 Please NOTE that registration is NOT required to use OSLIS 2.0. It adds additional options for storing and sharing items in.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Using a set-up file to read ASCII data into SPSS
Introduction to Programming
Introduction to Programming
TUTORIAL 2: Creating Query for Bill Processing Using
The Little Crab Scenario
Python Mr. Husch.
Introduction to Programming
Introduction to Programming
Use proper case (ie Caps for the beginnings of words)
Understanding the Visual IDE
Lecture Set 3 Introduction to Visual Basic Concepts
Lesson 15: Processing Arrays
HOW TO CREATE A CLASS Steps:
Introduction to Programming
THE COMPUTE STATEMENT Purpose: performs mathematical calculations
Software Development Process
CSCI N207 Data Analysis Using Spreadsheet
MePS Manual Login Screen
Java Programming with BlueJ Objectives
Introduction to Programming
Running a Java Program using Blue Jay.
Introduction to Programming
Presentation transcript:

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

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

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

Or Click here on the task bar

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

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

You have now successfully completed a ProgramPad exercise!