Download presentation
Presentation is loading. Please wait.
Published byCharla Matthews Modified over 8 years ago
1
Programming
2
In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
3
Programming Language Example:
4
The words and symbols that a programmer uses are known as syntax. Each programming language has its own syntax rules. Some different types of coding languages include Python, Ruby and Squeak (a version of Java SmallTalk that is used on the Scratch site). Examples of programming languages that can be used to create computer games include C++,.NET, Java, etc. Program developers choose the programming languages they will use depending on which platform and device the program will be using, such as Windows, Mac, Android or iOS.
5
In programming, creating a plan to solve a problem or perform a certain task is known as writing an algorithm. An algorithm is a set of step-by-step instructions that must be executed in order to solve a problem or perform a task. An algorithm is how we get computers to solve problems. They tell the computer what to do and how to do it.
6
People use algorithms every day but often do not refer to them as algorithms or think about the individual steps used. For example, making a sandwich, getting dressed, going to school, or cooking a meal, are all accomplished using algorithms. There can be numerous ways to solve a problem or perform a particular task. For example, what are the steps and time frames for your “going to school” algorithm?
7
Santa’s Dirty Socks https://www.youtube.com/watch?v=wVPCT1VjyS A&list=UUI3-5XVIw7-JI1a4VhuMZzw What is an Algorithm? Video https://www.youtube.com/watch?v=6hfOvs8pY1k
8
Programmers must create efficient algorithms so that programs can run as fast as possible.
9
Define in your own words: Game Programmer = Data = Precise = Executing = Programming Language = Syntax = Algorithm = Efficient = Pseudo-code=
10
Game Programmer = software engineer generally creating codebase for videogames or related software Data = Computers store, retrieve, manipulate, and display data. Precise = exact in measuring, recording, etc.: Computers do what we program. No more, no less. Executing = Running the Program
11
Programming Language = A set of rules written for a computer to perform specific tasks. Usually in a high level language like Basic or C++. Written in text and symbols. Syntax = language defining how declarations, functions, commands, and other statements should be arranged.functions In order to create a set of instructions to solve a problem or perform a task, you must complete several activities. For example, identifying and understanding the problem, using logic to plan a solution to a problem, creating the procedures needed to execute the solution, and finally testing and refining the solution. This basic process is used to create computer programs.
12
Algorithm = Creating a plan / step-by-step instructions that must be executed in order to solve a problem or perform a task. An algorithm is how we get computers to solve problems. In order to create a set of instructions to solve a problem or perform a task, you must complete several activities. For example, identifying and understanding the problem, using logic to plan a solution to a problem, creating the procedures needed to execute the solution, and finally testing and refining the solution. This basic process is used to create computer programs. “What’s an Algorithm?” Video https://www.youtube.com/watch?v=6hfOvs8pY1k https://www.youtube.com/watch?v=6hfOvs8pY1k
13
Efficient = using the least number of steps necessary to complete a task Pseudo-Code = a way of writing the details of algorithm steps in plain text using short phrases to describe the project outline. Sequential program structure= Selection program structure = Repetition program structure =
14
Flow Chart Symbols
15
Flow Chart Example
17
These methods do two things: o They provide the programmer with a way of outlining a program algorithm. o They also allow the programmer to focus on the logic of the algorithm and make refinements before translating it into programming language statements.
18
The five basic operators of a programming language are: IF, THEN, AND, OR, and ELSE. o Example, if the condition “Do you know your password?” is answered TRUE (yes), THEN you can access the Web site. o If the condition is NOT TRUE (no), then the ELSE event is initiated, which is “You cannot access the Web site.”
19
Operator Cause Operator Effect IF I am tired THEN I will take a nap IF I am thirsty THEN I will drink water IF I have a test THEN I will study
20
Group AGroup B Class 18295 Class 27688 Class 38490 First bullet point here Second bullet point here Third bullet point here Two Content Layout with Table
21
First bullet point here Second bullet point here Third bullet point here Task 1 Task 2Task 3Task 4Task 5Task 6Task 7 Two Content Layout with SmartArt
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.