

User Input
Presentation
•
Computers
•
9th - 12th Grade
•
Medium
Jose Jaramillo
Used 1+ times
FREE Resource
6 Slides • 5 Questions
1
User Input
By Jose Jaramillo
2
Programs
User Interaction
Programs are more fun when we can get input from the user.
3
Open Ended
What kind of input can we get from the user?
4
Getting User Input
Code
readLine(prompt)
readInt(prompt)
readFloat(prompt)
5
readLine
To read strings from the user, use readLine
var name = readLine("Enter name: ");
println(name);
6
readInt
To read integers from the user, use readInt
var age = readInt(
7
readFloat
To read floats from the user, use readFloat
var cost = readFloat("Enter cost: ");
println(cost);
8
Multiple Choice
What function do you need to call to ask the user of the program to enter text?
readLine
readln
text
println
9
Multiple Choice
To ask the user of the program for a number, which function should you use?
readLine
readInt
readFloat
Both readInt and readFloat are for numbers.
10
Open Ended
What is the following code going to print?
var name = readLine("What is your name? ");
println("Hello " + name + ", nice to meet you!");
11
Open Ended
What is the following code going to print?
var age = readInt("What is your age? ");
println("You are " + age + " years old.");
User Input
By Jose Jaramillo
Show answer
Auto Play
Slide 1 / 11
SLIDE
Similar Resources on Wayground
8 questions
SAS Programming Review (Modules 1-7)
Presentation
•
9th - 12th Grade
10 questions
CSP 1.1 Review - What is Computer Science?
Presentation
•
9th - 12th Grade
11 questions
Part 3 Mastering Microsoft PowerPoint
Presentation
•
9th - 12th Grade
8 questions
What do you like do?
Presentation
•
9th - 12th Grade
8 questions
6.4 Solving Polynomials with Synthetic Division
Presentation
•
9th - 12th Grade
8 questions
Testing - Sains
Presentation
•
9th - 12th Grade
10 questions
Summarizing
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
7 questions
Warm Up 04.01.2026
Quiz
•
9th Grade
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Linear Functions Review
Quiz
•
9th Grade
30 questions
English 1 STAAR Review
Quiz
•
9th Grade
10 questions
Pythagorean Theorem and its Converse
Quiz
•
7th - 9th Grade
14 questions
Ecological Succession: Primary and Secondary
Quiz
•
9th Grade