computerfix101
In Runtime
- Messages
- 151
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.
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.