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

Learning Plan 6 Calculate Percentage Value

# Example: Calculate Percentage Value

#### File: /Learning Plan 6/example1.html

### Problem Statement

> Design a program that will receive a fraction in the form of a numerator and a denominator, convert that fraction to a percentage and display the result. Your program is to use a module to calculate the percentage. Use another module to round the percentage to the nearest tenth. Create other modules as you see the need for them.

### The Program

Numerator:

Denominator:

Percentage:

### Design Tools

- The Programming Planning Lists, the Test Plan and Cases, and the Solution Algorithms are in the JavaScript source code.

### JavaScript

- Here's the HTML code with the form:
- Here's the JavaScript code: