

Expressions and Output
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Katherine Valenti
Used 1+ times
FREE Resource
65 Slides • 8 Questions
1
Expressions and Output
2
Students will be able to...
Differentiate between System.out.print and System.out.println
Format output using escape sequences
Write and evaluate arithmetic expressions in Java
Predict and explain output of integer vs. floating-point division
3
Warm Up
4
Open Ended
What are some examples of programs or apps that format their output for readability?
5
Warm Up
Chat apps
Email
Game User Interfaces
6
Open Ended
Why might it be important to control where a line break happens in your output?
7
Warm Up
Ensure clarity
Align Text
Match expected formatting
8
Open Ended
What kind of math do you think computer programs need to do?
9
Warm Up
Basic addition
Complex data analysis
Predictions
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Now It's Your Turn!
Head to CodeHS and access the Expressions and Output (Day 2) modules. You will be completing:
How Many Gigs?
Tricky Integer Division
Weight of a Pyramid
Tip Calculator
Exploration: Temperature Conversion
65
Wrap Up
66
Match
Match the following concepts
Prints out a line of output to the user
Print output to the user, without ending the line printed
Divides 2 numbers and returns the remainder, uses a % symbol
When 2 integers are divided, the decimal values are truncated or chopped off
System.out.println
System.out.print
Modulus/Modulo/Mod
Integer Division
System.out.println
System.out.print
Modulus/Modulo/Mod
Integer Division
67
Match
Match the following concepts
Characters with special meanings
Combination of numbers, operators, and sometimes variables that compute a value
Trim digits of a double-type number
Escape Sequence
Arithmetic Expression
Truncation
Escape Sequence
Arithmetic Expression
Truncation
68
Open Ended
How does System.out.print behave differently from System.out.println?
69
Wrap Up
print keeps output on the same line
println adds a new line after the text
70
Open Ended
Why do we sometimes get unexpected results with integer division?
71
Wrap Up
It will truncate the decimal number and not round it
72
Open Ended
How can escape sequences help make your output clearer or more readable?
73
Wrap Up
Allow structured, multi-line output while using only one print statement
Expressions and Output
Show answer
Auto Play
Slide 1 / 73
SLIDE
Similar Resources on Wayground
66 questions
Animal Science-Dairy Judging Review Lesson
Presentation
•
10th - 12th Grade
67 questions
Classical Greece 4
Presentation
•
9th - 12th Grade
65 questions
Download pg 87 passive voice
Presentation
•
9th - 11th Grade
69 questions
Chemical Reactions Slides
Presentation
•
9th - 12th Grade
66 questions
Biomes on Earth Lesson
Presentation
•
9th - 12th Grade
66 questions
Computer Storage Media Capacity
Presentation
•
9th - 12th Grade
68 questions
Chemistry Unit 3 Lesson 1: Heat vs. Temperature
Presentation
•
10th - 12th Grade
68 questions
1° Language Exam Guide B3P1
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Logos
Quiz
•
6th - 9th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
21 questions
Factoring Trinomials (a=1)
Quiz
•
9th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade