home


assignments
lectures
schedule
syllabus
links

 

 


CIS 154 - Javascript Programming - Assignment 4

Due 12/8

Description: Starbucks, Inc. has hired you to create an application that will help their customers pre-order coffee for one week. In this test environment, Starbucks has elected to use a selected set of coffees for this application. The program will offer the customer their choice of a Cappuccino, or a Frappuccino, or a Latte'. All coffee comes in three sizes, "Tall", "Grande", or "Venti". The program will ask the customer to select a type of coffee and a size, then save both. Once the customer has set their coffee selection for each day of the week, the program will display their selections by day of the week.

Here is a sample of the program:


Note: The day of the week should change for each day of the week.

(Continues through the rest of the week)


Assumptions:
You may assume that all input are strings and all are valid.

Requirements:
1) You must use an at least one array. I used three, one for the days of the week, one for the selected coffee, and one for the sizes of the coffee.

2) You must also use one loop to iterate through your array.

3) You must use some control structure to determine which coffee and size were selected.

Objectives:
* Understand flow control structures. This application uses loops and control statements.

Fullerton College is part of the
North Orange County Community College District Logo North Orange County Community College District
For comments and suggestions email webmaster@fullcoll.edu
Disclaimer © Fullerton College, Copyright 2004