wp5 - <html> <!- wp5.html <!- This page will...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
<html> <!-- wp5.html Kyle Haire --> <!-- This page will calculate a customers carpet bill --> <!-- ===================================================================== --> <head> <title>Customers Carpet Bill</title> <script type="text/javascript"> function Bill() // Assumes: Length, Width, Price, and Discount are Entered // Results: Will calculate the customers bill { Len = document.getElementById('LenBox').value; Len = parseFloat(Len); Wid = document.getElementById('WidBox').value; Wid = parseFloat(Wid); Area = Math.ceil((Len * Wid) * 100)/100; document.getElementById('AreaBox').value = Area; Area = parseFloat(Area); Price = document.getElementById('PriceBox').value; Price = parseFloat(Price);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Carp = Math.ceil((Price * Area) * 100)/100; document.getElementById('CarpBox').value = Carp Carp = parseFloat(Carp); Labor = Math.ceil((1.75 * Area) * 100)/100; document.getElementById('LaborBox').value = Labor Labor = parseFloat(Labor); IP = Math.ceil((Carp + Labor) * 100)/100; document.getElementById('IPBox').value = IP
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

wp5 - &lt;html&gt; &lt;!- wp5.html &lt;!- This page will...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online