Practice Problems Set 1

  1. Write a page in HTML that contains a form. The form should contain two input boxes to allow the user to enter two numbers. The form should contain a button labelled "Find Average". When the user clicks the button, the form should display in another input box the average of the two numbers.
  2. Write a page in HTML that contains a form. The form should contain two input boxes to allow the user to enter two numbers. In the first box the user should be prompted to enter the price of an item. In the second box the user should be prompted to enter the percentage of tax on the item. The form should contain a button labelled "Compute Total". When the user clicks the button, the form should display in another input box the total amount the user has to pay for the item.