Thread: ????

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    1

    Question ????

    I need to write a program that calculates a person's weight on another planet. I'm new to C++ and would like ideas.
    Thanks

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Show us some code. If you dont know C++ read some tutorials, at www.cprogramming.com for example.

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Mass * Gravity = Weight

    Now go do your own homework, lazyass.

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    here's how you do it:

    Code:
    #??????? <????????>
    
    ??? main()
    {
        ???? Mass;
        ????? Gravity;
        ????? Weight;
    
        ????<<"Enter the Mass: "?
        ?????mass?
        ????<<"Enter the Gravity: "?
        ?????gravity?
        
        ????????????????????
    
        ????<<"Your Weight would be: ???Weight;
    
        ?????? 0;
    }
    maybe if you give a more descriptive title and more effort, I'll do the same
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed