wp3 - <html> <!- wp3.hml <!- This page will...

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

View Full Document Right Arrow Icon
<html> <!-- wp3.hml Kyle Haire --> <!-- This page will display a customers bill for a carpet company --> <!-- ===================================================================== --> <body> <h2 style="text-align:center">Customer Carpet Bill</h2> </br> </br> <script type="text/javascript"> Len = prompt("Please Enter the length of your carpet", ""); Len = parseFloat(Len); Wid = prompt("Please Enter the width of your carpet", ""); Wid = parseFloat(Wid); Price = prompt("Please Enter the price of your carpet per square feet", ""); Price = parseFloat(Price); Discount = prompt("Please Enter your discount percentage", ""); Discount = parseFloat(Discount); Area = Math.ceil((Len * Wid) * 100)/100; Area = parseFloat(Area); Carp = Math.ceil((Area * Price) * 100)/100; Carp = parseFloat(Carp); Labor = Math.ceil((Area * 1.75) * 100)/100; Labor = parseFloat(Labor); IP = Math.ceil((Carp + Labor) * 100)/100; IP = parseFloat(IP);
Background image of page 1

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

View Full DocumentRight Arrow Icon
Disc = Math.ceil(((Discount/100) * IP) * 100)/100; Disc = parseFloat(Disc);
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 / 3

wp3 - &lt;html&gt; &lt;!- wp3.hml &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