Unit 3 Lab 2

Contact List

In this lab, you will develop a Contact List database application like the one on your phone.

Lab 2

Creating the Contact ADT

In this section, you will develop an Abstract Data Type to store and access contact data (name, address, phone number, etc.).

Lab2_Creating the Contact ADT

Adding Contact Data

In this section, you will develop code for "Add Contact" and "Clear List" buttons in your contact list program.

Lab2_Adding Contact Data

Vocabulary

Click each word to view the definition.

Input

We use "input" loosely to mean the empty boxes in a block that get filled with values. But input also means information entered into a program by the user, as in the ask and wait block. Program input can also come from data tables, sounds, pictures, video, or other programs.

Output

Any data sent from your program to the user or to any device. Typically, the output depends on the input.

If There's Time

Lab2_Adding Contact Data_If There Is Time

Click to access the page.

Adding Birthdays

In this section, you will develop an abstract data type (ADT) to store and access dates, and you will adapt your contact ADT to use it to store each contact's birthday.

Lab2_Adding Birthdays

Selecting Specific Data

In this section, you will develop code for a "Find Contact" button to locate contacts in the list.

Lab2_Selecting Specific Data

Vocabulary

Click each word to view the definition.

Modularity

Process of breaking a programming project up into separate sub-problems

If There's Time

Lab2_Selecting Specific Data_If There Is Time

Transforming Every List Item

On this page, you will use the map block to create an initials from name block and then use map together with initials from name to find the initials of all of your contacts.

Lab2_Transforming Every List Item

Self-Check

Unit 3 Lab 2 : Transforming Every List Item

Lab2_Transforming Every List Item_Part 2

Vocabulary

Click each word to view the definition.

Higher Order Function

A function that takes a function as input (or reports a function as output).