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

Learning Plan 4 4.2 Assignment 1

# 4.2 Assignment 1

#### File: /Learning Plan 4/4.2assignment1.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 a number. The program will then output to the page several statements about the number: whether the number is even or odd, if the number is greater than 100 or less than 100, if the number is a negative number or a positive number, and if the number is the year of your birth.

> NOTE: Only use simple if statements, no else statements allowed.

1. Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.

- Sample Part 1 Output:

    The number 1980
      - is an even number.
      - is greater than 100.
      - is a positive number.
      - is not the year of my birth.

### Your Part 1 Output:

## Part 2

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 a single word. The program will then output several facts about the word: if the length of the word is more than 10 letters, if the word is less than the word "Algebra" or not. If the word is greater than the word "Singularity" or not, and if the word starts with an uppercase letter or a lowercase letter.

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

- Sample Part 2 Output:

    The word, "existentialism"
      - has a length that is greater than 10.
      - is not less than, "Algebra".
      - is greater than the word, "Singularity".
      - starts with a lowercase letter.

### Your Part 2 Output:

### Submitting your work

- Zip and submit this page 4.2 Assignment 1