hw03_revised

hw03_revised - CS 159 – Spring 2011 HW#03 – 5 Points...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 159 – Spring 2011 HW #03 – 5 Points Possible Due: February 21, 2011 at 11:00pm Problem: See problem 44 on page 228 of your C programming text. Do not concern yourself with the description as it is continued on page 229. You MUST make use of the user-defined functions outlined below. Example Execution #1: Enter the length of the room: 10 Enter the width of the room: 15 Enter the customer discount: 10 Enter the cost per square foot: 2.50 MEASUREMENT Length 10 ft Width 15 ft Area 150 square ft CHARGES DESCRIPTION COST/SQ.FT. CHARGE----------- ----------- ---------- Carpet $ 2.50 $ 375.00 Labor $ 0.35 $ 52.50---------- INSTALL PRICE $ 427.50 Discount 10% $ 42.75---------- SUBTOTAL $ 384.75 Tax $ 32.70 TOTAL $ 417.45 Example Execution #2: Enter the length of the room: 15 Enter the width of the room: 15 Enter the customer discount: 20 Enter the cost per square foot: 5 MEASUREMENT Length 15 ft Width 15 ft Area 225 square ft CHARGES DESCRIPTION COST/SQ.FT. CHARGE----------- ----------- ---------- Carpet $ 5.00 $ 1125.00 Labor $ 0.35 $ 78.75---------- INSTALL PRICE $ 1203.75 Discount 20% $ 240.75----------...
View Full Document

Page1 / 2

hw03_revised - CS 159 – Spring 2011 HW#03 – 5 Points...

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

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