Like Tree4Likes

Calculating body weight.

This is a discussion on Calculating body weight. within the C++ Programming forums, part of the General Programming Boards category; So how do you calculate the difference between 5 feet and the height value you entered? Jim...

  1. #16
    Registered User
    Join Date
    May 2010
    Posts
    2,700
    So how do you calculate the difference between 5 feet and the height value you entered?

    Jim

  2. #17
    Registered User
    Join Date
    Oct 2006
    Posts
    2,349
    no. you're not allowed to give full code to help. if you had read the forum rules when you signed up, you'd know that.

    please take it down.

  3. #18
    Registered User
    Join Date
    Aug 2012
    Posts
    23
    Got it:

    Code:
    feetIn = feet * 12;
    totInch = feetIn + inches;
    inches = totInch - 60;
    ideal = inches * 5 + 110;
    Swadesh likes this.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weight Conversion Program
    By AKalair in forum C Programming
    Replies: 12
    Last Post: 11-21-2007, 11:31 AM
  2. Weight Change Program - Help
    By battousaih in forum C Programming
    Replies: 14
    Last Post: 10-01-2007, 04:34 PM
  3. Your Weight On Planets
    By Trekkie in forum C++ Programming
    Replies: 16
    Last Post: 10-23-2005, 11:01 PM
  4. Guaranteed weight loss
    By Glirk Dient in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 05-12-2004, 06:11 AM
  5. losing weight
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 10-21-2002, 05:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21