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

Learning Plan 3 3.3 Assignment 3

# 3.3 Assignment 3

#### File: /Learning Plan 3/3.3assignment3.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. Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.
   1. Create a variable that will hold a number.
   2. Create a variable that will hold another number.
   3. Assign the number `100` to the first variable.
   4. Prompt a user to enter a number and assign it to the second variable.
   5. Convert the entered value to a number.
   6. Using the compound operator `+=`, add the entered number to the first number 10 times.
   7. Display the two variables on the page.
   8. Display the results of each compound operation.

> Sample Part 2 Output:

    First Number: 100
    Entered Number: 6

    100
    106
    112
    118
    124
    130
    136
    142
    148
    154
    160

### Your Part 1 Output:

## Part 2

1. Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.
   1. Repeat the program in part one. Only this time use the compound operator `/=`.

> Sample Part 2 Output:

    First Number: 100
    Entered Number: 3

    100
    33.3333333333333
    11.1111111111111
    3.7037037037037
    1.23456790123457
    0.411522633744856
    0.137174211248285
    0.0457247370827618
    0.0152415790275873
    0.00508052634252909
    0.00169350878084303

### Your Part 2 Output:

### Submitting your work

- Zip and submit this page 3.3 Assignment 3