Hexidecimal Math

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yana
    New Member
    • Mar 2007
    • 12

    #1

    Hexidecimal Math

    Hexadecimal numerals are integers written in base 16.The 16 digits used are '0'
    through '9' plus 'a' for the "digit 11",'c' for the "digit 12",'d' for the
    "digit 13",'e' for the "digit 14", and 'f' for the "digit 15".For example the hexadecimal numeral d is the same as base 10 numeral 14 and the hexadecimal numeral 1d is the same as the base 10 numeral 30.Write a C++ program to perform addition of two hexadecimal numerals each with up to 10 digits. If the result of the addition is more than 10 digits long, then simply give the output message “Addition Overflow” and not the result of the addition. Use arrays to store hexadecimal numerals as arrays of characters. Include a loop to repeat this calculation for new numbers until the user says she or he wants to end the program.

    please help me to solve this question as soon as possible..
    i need it as a reference for my lab test..
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Subscribing to this thread because it sounds interesting.


      Also as a tip you will probably want to start by creating a small function that will convert hexadecimal digits held as characters into their binary value.

      Comment

      • yana
        New Member
        • Mar 2007
        • 12

        #4
        Originally posted by Banfa
        Subscribing to this thread because it sounds interesting.


        Also as a tip you will probably want to start by creating a small function that will convert hexadecimal digits held as characters into their binary value.
        this is not an assignment.this is just an exercises from book written by walter savitch problem solving with c++ -- six edition-page 436

        i really need your help as soon as possible

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          Originally posted by yana
          this is not an assignment.this is just an exercises from book written by walter savitch problem solving with c++ -- six edition-page 436

          i really need your help as soon as possible
          If it is an exercise from a book then you are presumably doing it to learn, therefore my doing it for you wont help.

          Make your own attempt, post here with code/execution errors or logic problems once you have tried.

          Comment

          Working...