The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor(width times length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. To cover that floor with carpet that costs $8 per square foot would cost $960 (12x10x8=960).
See more details in attachment file.
P/S: Use C++ only.
This question was asked on Apr 23, 2010.
Recently Asked Questions
- is imperialism a product of unregulated capitalism? I want to write about something like nationalism and industrialism, but don't know how to
- “What could be the psychological bases for why the 15 year old teenager crossed the road, only to get arrested by the police who were sitting in the car
- How have Zen Buddhist ideas influenced music for shakuhachi?