//MAKE: 2.03 Skill-builder: Formula solver


The assignment

Create a page that will calculate the answer to a formula, given some information.

  1. Choose a formula for you to calculate
  2. Create a the HTML of your page. You will need:
  3. Give each text input, button, and output area an ID
  4. Use Javascript to attach onclick to buttons and onchange to text input areas
  5. Create a function that will:
    1. read the input line, and store the value in a variable
    2. perform a calculation, and store the result in a variable
    3. output the result into an element using .innerHTML

HINT: look carefully at the //PROCESS: Basic math example code

Saving your work

Use Save as... to save the empty template as "2.03S-FormulaSolver-LastName.html" in your Computer Programming 12 directory.

Extend and expand

Use CSS to style your page.

Find the most complex formula you can with multiple variables.