CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    1

    c++ Conversion Program Help for Newbie.

    I need help in creating a conversion program to convert kilograms to pounds. The user will enter a number for weight and a char for unit of measurement K= kilo or P=pound and the program should display the other corresponding weight.

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    Re: c++ Conversion Program Help for Newbie.

    1 lb = 0.453 592 370 kg(exakt, per definitionem) (according to Wiki)
    1 kg ≈ 2.204 622 622 lb

    What do you have written so far and where are you having problems?
    Last edited by Richard.J; October 9th, 2012 at 01:17 AM. Reason: precised weights

  3. #3
    Join Date
    Jan 2009
    Posts
    1,689

    Re: c++ Conversion Program Help for Newbie.

    Sounds like you just don't want to do your homework. I could write that program in 5 lines of code.

    Give us what you've written so far and we'll gladly explain what you are doing wrong, but we won't start you from nothing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured