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

Learning Plan 6 6.1 Assignment 3

# 6.1 Assignment 3

#### File: /Learning Plan 6/6.1assignment3.html

### Student

- Name:
- Section:
- Email:

## Part 1

1. Open this file in Firefox and Microsoft Visual Studio.
2. Add your name, section, and email
3. Open the file "/Learning Plan 6/jsFiles/6.1assignment3.js"
4. Locate the function named "assignment61_3Part1()".
5. Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.

### Part 1 Problem Statement

> Write an application that uses the Part 1 Form below. The user will enter a number in all 9 cells and press the calculate button. Once all 9 entries have been validated as numbers the application will calculate the sums of the rows and columns and output the values to the page.

### Your Part 1 Form:

####

Π | Col 1 | Col 2 | Col 3 | Sum
Row 1 |  |  |  |
Row 2 |  |  |  |
Row 3 |  |  |  |
Sum |  |  |  | Ω

## Part 2

1. Locate the function named "assignment61_3Part2()".
2. Add code after the line: `// PART 2: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.

### Part 2 Problem Statement

> Write an application that uses a form on a web page to collect names and address from a user. The data to be collect is as follows:

> - First Name
> - Last Name
> - Address
> - City
> - State
> - Zip Code

> After the user enters the data and presses the submit button, the application will write the data to the page as a new row in an HTML table. Create as much of the HTML table in static code in the HTML file as possible. Only add the row for each new entry.

### Your Part 2 Output:

### Submitting your work

- Zip and submit 6.1 Assignment 3
- Don't forget to also zip and submit your JavaScript file 6.1assignment3.js.
- Make sure that both files are zipped and submitted together.