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

Learning Plan 4 4.3 Project - Part 4

# 4.3 Project - Part 4

#### File: /Learning Plan 4/4.3projectPart4.html

### Student

- Name:
- Section:
- Email:

### Specifications

- Open this file in Firefox and Microsoft Visual Studio
- Add your name, section, and email

### Problem Statement

> An architect's fee is calculated as a percentage of the cost of a building. The fee is made up as follows:

- 8% of the first $5,000.00 of the cost of a building.

- Add 3% of the remainder if the remainder is less than or equal to $80,000.00 or 2.5% of the remainder if the remainder is more than $80,000.00.

> Design a program that will accept the cost of a building and calculate and display the architect's fee.

> Make sure you only use variables in all calculations. No hard-coded numbers are allowed in calculations. Refer to here for an example.

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

### The Test Plan

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

    TEST PLAN:

    Test Case 1:
        Inputs:

        Expected Results:

    Test Case 2:
        Inputs:

        Expected Results:

    Test Case 3:
        Inputs:

        Expected Results:

    Test Case 4:
        Inputs:

        Expected Results:

    Test Case 5:
        Inputs:

        Expected Results:

### JavaScript Program

> Write the JavaScript code based on everything you've done. Your code must follow the course coding standards. You should add good comments about the different parts of your solution. Be sure to test your program using a variety of different building costs, before being satisfied that your program will always produce correct output.

### Sample Output:

    For a building that costs $100000 the architect's fee will be $2775.

### 4.3 Project - Part 4 Output: