

Intro to Algorithms, Programming, and Compilers
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Katherine Valenti
Used 3+ times
FREE Resource
78 Slides • 10 Questions
1
Intro to Algorithms, Programming, and Compilers
2
Students will be able to...
Define and construct step-by-step algorithms for real-world and computing tasks
Identify the structure of a basic Java program and use System.out.println() to display output
Describe and demonstrate the compilation and execution process of a Java program
Identify and correct syntax errors through debugging exercises
3
Warm Up
4
Open Ended
What are some tasks you do every day that involve steps?
5
Warm Up
Making lunch
Brushing your teeth
Tying your shoes
6
Open Ended
What would happen if someone skipped a step or got them out of order?
7
Warm Up
The task might not work
Your sandwich is missing something
Shoes may come untied
8
Open Ended
What do you think a computer needs in order to complete a task?
9
Warm Up
Needs a list of steps to follow
10
11
12
Algorithms
Computers aren’t very good at coming up with ideas for themselves
They’re very good at following step-by-step instructions
Algorithms are at the heart of computer programming
13
14
15
16
17
18
19
Open Ended
Choose a task that you do frequently, such as making the bed, driving to school, making your lunch, or packing your backpack. Create an algorithm for your task by writing a list of step-by-step instructions. Try to break the task down into small steps so that anyone could follow your steps.
20
Example
Brush bottom-right quadrant of teeth for 30 seconds.
Brush top-left quadrant of teeth for 30 seconds.
Brush bottom-left quadrant of teeth for 30 seconds.
Spit out toothpaste.
Turn on water.
Drink some water, rinse, and spit.
Turn off water.
Put down toothbrush.
Get toothbrush and toothpaste
Turn water on.
Get the bristles of the toothbrush wet.
Turn the water off.
Open toothpaste lid and squeeze a pea-sized amount of paste on the bristles of toothbrush.
Brush top-right quadrant of teeth for 30 seconds.
21
22
23
24
25
26
27
28
29
30
31
32
Creating the Main Class
Notice that each word is lowercase
public means that something is accessible by everyone
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Text Editor
A plain text editor is one of the most basic text editing programs
You can create and edit text, but there is no text formatting or styling
A text editor also isn’t able to run code
55
56
57
58
59
60
61
Syntax
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Open Ended
Write an analogy to describe the process of compiling and executing code. Think of a real-world activity that mirrors the steps of writing, compiling, and running a program.
77
Compilation and Execution
Writing the code is like writing the recipe
You decide what ingredients to use, what steps to follow.
Compiling the code is like prepping all the ingredients—chopping, measuring, and organizing them
This ensures everything is in the right form and ready to go
If there’s something missing or prepared incorrectly (like a syntax error), you’ll catch it before cooking.
78
Compilation and Execution
Running the code is like making and baking the cake
You mix all of the ingredients together and put your batter in the oven (execute the program)
If everything is done correctly, you get a delicious cake (the desired output)
If there’s an issue, like overcooking or missing a step (runtime error), the cake won’t turn out right
79
Now it's Your Turn!
Head to CodeHS and access the Introduction to Algorithms, Programming, and Compilers modules. Complete the following:
Debugging: Quotes
Compiling and Running Java
Explore the Exception Error
80
Wrap Up
81
Match
Match the following concepts
Fixing a problem in your code
Error in the sequence of words or rules in a program that prevents the program from running
Set of steps or rules to follow to solve a particular problem
Rules for writing code in a specific programming language
Debugging
Syntax Error
Algorithm
Syntax
Debugging
Syntax Error
Algorithm
Syntax
82
Match
Match the following concepts
Java method that lets us print out a line of output to the user
Java method that lets us print output to the user, without ending the line printed
Java type that represents a string of characters (text)
System.out.println
System.out.print
String
System.out.println
System.out.print
String
83
Open Ended
What command is used to print in Java?
84
Wrap Up
System.out.println("text");
85
Open Ended
What happens if you forget the quotation marks or semicolon?
86
Wrap Up
A syntax error
Java expects specific formatting
87
Open Ended
Why is it important to understand how a program is compiled and executed?
88
Wrap Up
Helps you to understand how your code is translated into actions
Makes debugging earlier
Intro to Algorithms, Programming, and Compilers
Show answer
Auto Play
Slide 1 / 88
SLIDE
Similar Resources on Wayground
83 questions
2.2.2 Computational methods - SLR24
Presentation
•
KG - University
79 questions
Graphic Design: Workplace Technologies
Presentation
•
9th - 12th Grade
84 questions
1.2 Scientific Method Notes
Presentation
•
9th - 12th Grade
82 questions
Skeletal System Review
Presentation
•
9th - 12th Grade
81 questions
Physical Science Q3 Benchmark Review
Presentation
•
9th - 12th Grade
83 questions
TEST REVIEW Forces in One Dimension
Presentation
•
10th - 12th Grade
83 questions
Genetic engineering
Presentation
•
KG - University
81 questions
Biology Semester 1 Credit Recovery
Presentation
•
9th - 11th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
Afterschool Activities & Sports
Quiz
•
6th - 8th Grade
19 questions
ROAR Week 2026
Quiz
•
9th - 12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
15 questions
Cool Tool:Chromebook
Quiz
•
6th - 8th Grade
22 questions
would you rather
Quiz
•
3rd - 11th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Early Computing
Quiz
•
7th - 12th Grade
10 questions
Exploring the Parts of a Computer
Interactive video
•
6th - 10th Grade
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
20 questions
Binary Numbers
Quiz
•
11th Grade
10 questions
Mastering Proper Keyboarding Techniques
Interactive video
•
6th - 10th Grade