help me in this program. please!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isabelle
    New Member
    • Dec 2006
    • 14

    help me in this program. please!!

    hi, every body..

    help me in this program. please!!

    write a c++ program that converts hexadecimal digit to its corresponding decimal value.

    input/output:
    Enter a hexadecimal digit :A
    The corresponding decimal value:10

    can any body help me!!
    .
    .
    .
    I’m waiting??
  • Silent1Mezzo
    New Member
    • Feb 2007
    • 208

    #2
    Originally posted by isabelle
    hi, every body..

    help me in this program. please!!

    write a c++ program that converts hexadecimal digit to its corresponding decimal value.

    input/output:
    Enter a hexadecimal digit :A
    The corresponding decimal value:10

    can any body help me!!
    .
    .
    .
    I’m waiting??
    What have you got so far? Do you know how to convert a hex value into a decimal value?

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      Please have a look at this as well.

      Thanks.

      Comment

      • isabelle
        New Member
        • Dec 2006
        • 14

        #4
        Originally posted by Silent1Mezzo
        What have you got so far? Do you know how to convert a hex value into a decimal value?
        yes , I know how to convert a hex value into a decimal value but I don’t know how to writ this in a program.
        but I think that we must use switch statement.. If we ..how must the program will be like?

        can you explain for me..

        {thanks a lot}

        Comment

        • nemisis
          New Member
          • May 2007
          • 61

          #5
          Give it a try, write ur variables,
          use the switch statement and don't forget to store the digits after the switch statement.

          Also remember that A=10, B=11 C=12 and so on , so u would hv to convert(represe nt) these values b4 the switch statement in variables of A , B, C

          And get the input from the user in a string rather than a double

          I am not so good at this but hope u can do something and then ask ur queries.

          Comment

          Working...