Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 02-06-2011, 06:55 PM   #1
In Runtime
computerfix101's Avatar
Join Date: Nov 2007
Posts: 151
Send a message via AIM to computerfix101 Send a message via MSN to computerfix101
Default C++ Programming Help.....

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.

computerfix101 is offline   Reply With Quote
Old 02-07-2011, 05:21 AM   #2
Site Team
berry120's Avatar
Join Date: Jul 2009
Location: England, UK
Posts: 3,434
Default Re: C++ Programming Help.....

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.
berry120 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 04:17 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0