Program problems with return height and weight in different values

This is a discussion on Program problems with return height and weight in different values within the C++ Programming forums, part of the General Programming Boards category; I'm trying to make a program that allows a user to enter a height in inches and a weight in ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    7

    Question Program problems with return height and weight in different values

    I'm trying to make a program that allows a user to
    enter a height in inches and a weight in pounds
    and returns the height in centimetres and the weight in kilograms. Use -1 to as SENTINEL.

    I have the function prototypes but am having
    problems with figuring what to do after
    int main()

    any help even in puesdo code would be useful
    thank you!

    the screen display I'am trying to create looks
    like this!

    Please enter the height in inches or -1===> a num
    Please enter the weight in pounds ===> a number

    The height in cms is a number
    The weight in kilos is a number

    and the program starts over again untill you
    enter the SENTINEL value!

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    The FAQ.
    Pay particular attention to the first three tutorials there.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. n00b tackles another problem set, needs more help :\
    By rightbrainer in forum C Programming
    Replies: 30
    Last Post: 04-18-2009, 02:37 AM
  2. problem with constructors
    By robasc in forum C++ Programming
    Replies: 8
    Last Post: 10-19-2006, 11:56 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. function problems
    By money in forum C++ Programming
    Replies: 5
    Last Post: 07-16-2003, 11:40 AM

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