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

Learning Plan 5 5.2 Lab 1

# 5.2 Lab 1

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

### Student

- Name:
- Section:
- Email:

## Part 1 Lab Steps

1. Open this file in Firefox and Microsoft Visual STudio
2. Add your name, section, and email
3. Locate the function named "lab52_1Part1()".
4. 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 asks a user to enter a number. If the number is greater than a starting variable that is set to zero, output the number and then ask the user to enter a bigger number and store it in the starting variable. As long as the newly entered number is bigger than the last one then keep asking the user to enter another bigger number. Display each number that is entered. Once the user enters a number that is smaller than the last one entered then display the sign off message "Good bye!"

#### Part 1 Sample Output

    2 is bigger than 0
    3 is bigger than 2
    4 is bigger than 3
    6 is bigger than 4
    5 is smaller than 6
    Good bye!

### 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:

    Test Case 3:
        Inputs:

        Expected Results:

### Your Part 1 Output:

## Part 2 Lab Steps

1. Locate the function named "lab52_1tPart2()".
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. The program will determine the average, maximum, and minimum Hourly Wage for the employees. Output the result as shown in the sample output.

#### Part 2 Sample Output

    Average Hourly Wage: 22.94
    Maximum Hourly Wage: 30
    Minimum Hourly Wage: 15

### 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:

    Test Case 3:
        Inputs:

        Expected Results:

### Your Part 2 Output:

## 5.2 Assignment 1

- 5.2 Assignment 1