Download presentation
Presentation is loading. Please wait.
Published byTimothy Francis Modified over 8 years ago
1
Programming with Miracle
2
Goals of Miracle ● Concentrate on key ideas in programming ● Reduce concerns about syntax ● Assist in development of code ● Illustrate chief ideas ● Create working programs
3
Using Miracle ● All main ideas of programming are in menus ● Each concept has some parameters ● Choose a command, enter parameters at prompt ● Code will be created for you automatically
4
Hello World ● Make a program that says “Hello World” ● Pause video and try...
5
Concepts in Hello World ● New Program ● Output ● End Program
6
Using the Miracle Summary ● First column is programming concept ● Second colum is description ● Third is parameters ● Fourth describes parameters
7
New Program Requires: ● Program name ● Author ● Date ● Purpose
8
Output Requires ● Text to print out
9
End Program Requires ● Name of thing to END
10
STAIR and Miracle ● STAIR is especially helpful when writing computer programs ● STAIR steps refined to handle programming
11
S-State the Problem ● Problem statement already given to you in these examples ● You'll need to come up with it yourself in later programs ● In English – not technical terms ● A sentence or paragraph
12
T-Tools I ● Look at the first column of the Miracle Summary ● Look at each tool and decide if you think it will be promising ● Write down the tool name if you think it applies
13
T-Tools II ● “Shake Out” the tools ● Re-write the list of tools in the rough order you think they will be needed. ● Indent your list properly
14
A – Algorithm ● For each tool, write a sentence like the one in the second colum of the guide ● Fill in parameters with your own values ● Write any way you wish as long as all parameters are described
15
I – Implementation ● Use Miracle to enter the data. You'll be asked for each parameter ● This is also where you would convert to a particular programming language
16
R-Refinement ● What went wrong? ● Can you find the problem? ● Can you repair it? ● Is it logic or syntax? ● Repeat until successful
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.