CPSC 110-08: Computing on Mobile Phones
Spring 2012

Homework: Broadcast Hub App
Due: Monday, 3/26 (before class)

CS Principles

This activity addresses the idea that computing is a creative activity and focuses on the following learning objectives:

Introduction

In this homework you will read about the Broadcast Hub, an example of social computing that uses text messaging.

Reading Assignment

Read Chapter 11 of App Inventor, Broadcast Hub (17 pages). This chapter describes an app that allows you to set up your phone as a hub that can distribute text messages to phones participating in your service.

You can also complete this reading assignment by reading the Broadcast Hub Tutorial. If time permits, try following the tutorial and creating an initial version of the app before class.

Reading Questions

Provide answers to the following two questions on a Portfolio page for this reading assignment.

  1. For this app we will need to use a list and some of the built-in list functions. For each of the following built-in functions, describe what parameters it takes and what it does. (NOTE: One way to learn about what these blocks do is to open up your Blocks Editor, pull each of the blocks out of the Lists toolbox, scroll over it, and read the documentation provided.)
    1. add items to list
      (Click to enlarge)
    2. is in list?
      (Click to enlarge)
    3. is a list?
      (Click to enlarge)

  2. This app will make use of the for-each loop construct. Describe in your own words what the following for-each block is doing:
    (Click to enlarge)

In Class on Monday

We will implement and test the broadcast hub example. Make sure you bring your phones to class.

In preparation for class, try to have SMS (texting) working on your phone, through one of the following methods: