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

Learning Plan 4 Drivers License

# Example: Drivers License

#### File: /Learning Plan 4/example-multipleBooleans.html

### Problem Statement

> Write a program that determines if someone gets a driver's license. The user is prompted for the age of the applicant, if the applicant passed the written exam, and if they passed the behind-the-wheel exam. The applicant is given a driver's license if they are at least 16 and they passed both exams.

### The Program Planning Lists

    The List of Input Variables:
        age
        writtenExamResults
        behindTheWheelExamResults

    The List of Output Variables:
        -none-

    The Process Checklist:
        Prompt for age
        Prompt for written exam results
        Prompt for behind-the-wheel results
        Check entered data
        Award driver's license or condolences

### Test Plan

    TEST PLAN:

    Test Case 1:
        Inputs: 16, Y, Y   (Note: As written, user must key an uppercase Y)

        Expected Results: A Driver's License

    Test Case 2:
        Inputs: 15, Y, Y

        Expected Results: A Condolence

    Test Case 3:
        Inputs: 16, Y, N

        Expected Results: A Condolence

### 5. JavaScript Output

- Here's the code:
- Here's the output: