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

Learning Plan 4 4.2 Assignment 2

# 4.2 Assignment 2

#### File: /Learning Plan 4/4.2assignment2.html

### Student

- Name:
- Section:
- Email:

## Part 1

1. Open this file in Firefox and Microsoft Visual Studio
2. Add your name, section, and email

### Problem Statement

> Write a program that asks a user to enter two numbers. If the first number is bigger than the second number then output a statement show the number and indicating that the first is bigger. If the second number is bigger then output a statement that indicates that. NOTE: Use only if statements.

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

- Sample Part 2 Output:

    The number 10 is bigger than 5.

- OR

    The number 4 is smaller than 5.

### Your Part 1 Output:

## Part 2

### Problem Statement

> Write a program that asks a user to enter a string. If the entered string is equal to the string, "Hello", then output, "Hello is the right word." If the user does not enter the right word then output, "Please try again."

> NOTES: Use only if statements. Use variables for the input and the word, "Hello".

- Sample Part 2 Output:

    Hello is the right word.

- OR

    Please try again

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

### Your Part 2 Output:

### Submitting your work

- Zip and submit this page 4.2 Assignment 2