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

Learning Plan 5 5.2 Lab 3

# 5.2 Lab 3

#### File: /Learning Plan 5/5.2lab3.html

### Student

- Name:
- Section:
- Email:

## Part 1 Lab Steps

- Open this file in Firefox and Microsoft Visual Studio.
- Add your name, section, and email.
- Open the file /Learning Plan 5/jsFiles/5.2lab3.js in Microsoft Visual Studio.
- Locate the function named "lab52_3Part1()".
- Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the lab from the program statement.

### Part 1 Problem Statement

> Write a program that loops 10 times. In the loop, ask the user to enter a number. If the entered value is a number then add the number to a total. If the user enters a value that is not a number then alert them that they didn't enter a number and stop the loop. The program will output the number of times that the loop ran and the total of all entered numbers.

#### Part 1 Sample Output

    The number of loops: 10
    The total: 594

### Part 1 Program Planning Lists

- In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.

    The List of Input Variables:

    The List of Output Variables:

    The Process Checklist:

### Part 1 Test Plan

    TEST PLAN:

    Test Case 1:
        Inputs:

        Expected Results:

    Test Case 2:
        Inputs:

        Expected Results:

### Your Part 1 Output:

## Part 2 Lab Steps

1. Locate the function named "lab52_3Part2()".
2. Add code after the line: `// PART 2: YOUR CODE STARTS AFTER THIS LINE:` to complete the lab from the program statement.
3. Refer to this page for the details about the Employee Payroll Records Set.

### Part 2 Problem Statement

> Write a program that accesses the Employee Payroll Records Set. Count the number of employees that have the same hourly wage. The wages are 15, 20, 25, or 30. Output a total for each of the wages as in the sample output.

#### Part 2 Sample Output

    Hourly Wage	Count
    15		6
    20		10
    25		10
    30		8

### Part 2 Program Planning Lists

- In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.

    The List of Input Variables:

    The List of Output Variables:

    The Process Checklist:

### Part 2 Test Plan

    TEST PLAN:

    Test Case 1:
        Inputs:

        Expected Results:

    Test Case 2:
        Inputs:

        Expected Results:

### Your Part 2 Output:

### 5.2 Assignment 3

- 5.2 Assignment 3