Computer Science Principles Unit 5 Chapter 1 Lesson 6: User Input and Strings

Learning Resource Type

Classroom Resource

Subject Area

Digital Literacy and Computer Science

Grade(s)

9, 10, 11, 12

Overview

In this lesson, students are introduced to the string data type as a way of representing arbitrary sequences of ASCII characters. They will use strings to accept input from a user as they work on mastering two new UI elements, the text input, and the text area. Students combine these skills to develop a simple Mad Libs® app.

Mad Libs® is a trademark of the Penguin Group (USA) LLC., which does not sponsor, authorize or endorse this site.

Students will be able to:
- identify strings as a unique data type which contains a sequence of ASCII characters.
- describe the characteristics of the string data type.
- accept string input in a program.
- manipulate user-generated string input to generate dynamic output.

Note: You will need to create a free account on code.org before you can view this resource.

Digital Literacy and Computer Science (2018) Grade(s): 09-12

DLCS18.HS.7

Compare and contrast fundamental data structures and their uses.

UP:DLCS18.HS.7

Vocabulary

  • data structures
  • arrays
  • stacks
  • queues
  • list
  • strings

Knowledge

Students know:
  • when to include varying types of data structures into a program to achieve a desired result.

Skills

Students are able to:
  • compare and contrast fundamental data structures and their uses.
  • properly use varying types of data structures in a program to achieve a desired result.

Understanding

Students understand that:
  • data structures organize data for ease of recall.
  • data structures differ by organization structure and purpose.

CR Resource Type

Lesson/Unit Plan

Resource Provider

Code.org

License Type

Custom
ALSDE LOGO