|
|
#1 |
|
In Runtime
|
I need help with this assignment I am doing for school. Here is what is required of me to do:
Write a program that computes the cost of carpeting to carpet a room. Ask the user for the dimensions of a room (in feet) and the cost of carpet (in square yards). You may assume the room is rectangular. Remember, there are 9 square feet in 1 (one) square yard. Compute the cost of carpeting the room, to include a tax of 8.5%. The number of square feet in a yard and the tax rate must be named constants in your program. I am posting a picture below to show what I have done, but I am coming up with some errors. ![]() I am a beginner at programming so any kind of help is appreciated. |
|
|
|
|
|
#2 |
|
Site Team
Join Date: Jul 2009
Posts: 2,627
|
Have a look at your variable declarations. Looks like you've got a semicolon after cost and then yard is on its own.
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|