Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is a program? A Program is a series of instructions that are executed to complete a task or solve a problem. The challenge is to piece together groups.

Similar presentations


Presentation on theme: "What is a program? A Program is a series of instructions that are executed to complete a task or solve a problem. The challenge is to piece together groups."— Presentation transcript:

1 What is a program? A Program is a series of instructions that are executed to complete a task or solve a problem. The challenge is to piece together groups of instructions in the proper format and sequence to successfully solve the problem at hand

2 When programming we are limited to a relative small set of instructions, that are dependent on the language with which we are programming?

3 instructions to write out It is important using grammar proper.
“It is important to write out instructions using proper grammar” C’est tres important d’utiliser les instructions qui appartient au language que vous avez choisis.

4 With each language we have distinct grammar or syntax to follow.
Ex: Pascal writeln ‘Hello’ C++ cout << “Hello”; Basic print “Hello”

5 If you do not follow the correct syntax or use instructions belonging to the language, the computer will not understand (and will report an error!) These types of errors are called syntax errors.

6 Exercise: Place the following instructions in a correct sequence.
Problem: Getting ready for school. Brush Teeth Eat breakfast Take a shower Get out of bed Wake up Getting dressed.

7 Wake up Get out of bed Eat breakfast Take a shower Brush Teeth Get dressed

8 Reflection Were there any instructions that I may have left out? What were they? What assumptions did I make when ordering my list?

9 The IPO Model Input Processing Output
The IPO model is a framework that can be used to solve a problem. It effectively models how a computer program would solve it. We get input from the user. The computer follows the instructions and performs tasks. We then output our results.

10 Algorithms An algorithm is a procedure or list of instructions that anyone can use to solve a problem. An algorithm can be extremely detailed, instructing not only what is to be done, but also how it is to be done. It could also be very general leaving out the minutia.


Download ppt "What is a program? A Program is a series of instructions that are executed to complete a task or solve a problem. The challenge is to piece together groups."

Similar presentations


Ads by Google