1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

C++ calculate room area

Discussion in 'Software Development' started by mls49, Apr 15, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. mls49

    mls49 Thread Starter

    Joined:
    Apr 15, 2009
    Messages:
    2
    I am a real beginner at C++, I have to write and equation to calculate the area of a room and area of a wall without two windows and a door! Ouch, I don't know where to begin.

    Please help!
     
  2. lilLB

    lilLB

    Joined:
    Mar 19, 2006
    Messages:
    307
    I'm guessing its a school project, but I'll give you a starting point. I don't actually know C++ ( only some C and Java) but i'll give you an idea on what you'll need to do.

    Depending what information you are going to be inputting into the program it should be fairly simple. For room area you need the length of the room and the width and just multiply them, only problem is if its an irregular room which you'd have to look up how to calculate different shapes' areas. For the wall area just calculate the area of the wall (length x height) and subtract the area of each door and window and you'll have the area of the wall.

    So you'll need a few inputs for the dimensions of the rooms and the walls and door and windows. Do the calculations I described and output the final answers.
     
  3. mls49

    mls49 Thread Starter

    Joined:
    Apr 15, 2009
    Messages:
    2
    Thanks for the starting point.
     
  4. -Fabez-

    -Fabez-

    Joined:
    Jul 28, 2008
    Messages:
    1,899
    First of all you will need to create a set of equations. After this you will need to create pseudo code, which you can use to make your program.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/819029

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice