CSCI101 Assign3

CSCI101 Assign3 - /*ID block -+ + Programmer : * + + Course...

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

View Full Document Right Arrow Icon
/*ID block ---------------------------------------+ + Programmer : **************** + + Course : Computer Science 101 + + Assignment #3 + + Due Date : 5 February, 2007 + +----------------------------------------------------*/ /* Program statement * This program will calculate the cost of carpeting a rectangular room using four functions ******************* Algorithm ************************* Step 1 Input Prompt User for Customer's Name (string) First name Last name Prompt User for measurements of the room (in feet) - (float) Length Width Prompt User for the price of the carpet (float) Red Carpet Brown Carpet Prompt User for cost of installation (per square foot)- (float) Prompt User for man-hours necessary for installation- (float) Prompt User for pay rate of workers- (float) Set Sales Tax Rate to 7.75% (const float) Step 2 Process Call function Cal_Cost(Length, Width, Cost_Brwn, Cost_Red, Cost_Insul) Tax = Initial_Cost * Sales_Tax Cost_Install = Man_Hours * Pay_Rate Final_Cost = Cost_Install + Tax + Initial_Cost
Background image of page 1

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

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

This note was uploaded on 05/05/2008 for the course CSCI 101L taught by Professor Ghyam during the Spring '07 term at USC.

Page1 / 3

CSCI101 Assign3 - /*ID block -+ + Programmer : * + + Course...

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