Northcentral Technical College Introduction To Programming
10-152-310
Introduction to Programming with JavaScript NTC 10-152-310

Learning Plan 6 6.2 Project - Part 1

# 6.2 Project - Part 1

#### File: /Learning Plan 6/6.2projectPart1.html

### Student

- Name:
- Section:
- Email:

### Specifications

- Open this file in Firefox and Microsoft Visual Studio
- Add your name, section, and email
- Read the following problem statement and complete all 5 steps in the development process.

### Problem Statement

> Write a program that will find all the unique zip codes in the Zip Code Study Records. The program must access the record set and extract the unique zip codes and store them. Then output the unique zip codes from storage and create a list of the unique codes. The program must use modules for all identifiable tasks.
> NOTE: The program may not have any zip code values hard-coded within the program, as was permitted in Learning Plan 5. This Learning Plan 6 program has to function correctly without knowing in advance how many unique zip codes exist in the record set, nor what the values of these unique zip codes are. Rather, the program must make one pass through the records in the file, using array storage to collect zip code values. Any arrays used in this program must be empty at the time the program begins to run.

- Project Notes:
  - Use the Zip Code Study Records for the data

### The Program Planning Tools

- The Program Planning Lists and the Test Plan will all be written in the JavaScript file in comments. [I.e. not in the HTML file.]
- To earn points on this project, also output the count of each zip code. For each zip code you will need to count the occurrences and store the value in something (Maybe a parallel array?)
- Output a table with two columns, one for each zip code, and one for the number of times that zip code occurs in the record set.

### JavaScript Output

> Write the JavaScript code based on everything you've done. Your code must follow the course coding standards. You should add good comments about the different parts of your solution. The output should be inserted within the output div tag in this HTML page. Make sure that every JavaScript function has its comment above it in the comments.

### 6.2 Project - Part 1 Output: