Simple hexadecimal addition question

In summary, the conversation discusses adding two hex numbers, x1100 and x3301, using different methods such as converting to binary, using a scientific calculator, and adding directly in hex. All methods result in the sum of x4401, but the webassign solution says it is wrong, causing confusion. It is suggested to double check the original numbers and the webassign solution.
  • #1
neshepard
67
0

Homework Statement


I have to hex numbers, x1100 and x3301, that I want to add. I tried to convert them to binary and and them, then convert back to hex-wrong. Tried a straight 1100+3301 addition with the answer being hex, and even used my ti-89 to add them, it can do conversions so why not.


Homework Equations





The Attempt at a Solution


For the conversion to binary and back I got x4401- told me it's wrong.
For the straight hex addition I got x4402-told me it's wrong.
For the ti-89 I got x1131-and of course it's wrong.

How do I add these and what is the answer?
 
Physics news on Phys.org
  • #2
You add them like you would in base 10, only using base 16 symbols and doing carries for sums >= 16. Your problem is very simple though, since hex symbols and carries >=16 don't occur:

Code:
1100
3301
-----
4401

Converting to binary works similarly, with base 2 symbols and carries for sums >=2:

Code:
  1000100000000
 11001100000001
 --------------
100010000000001


0b100010000000001 = 0x4401
 
  • #3
The calculator in Windows does it OK. Switch it to Scientific mode.

The answer is 4401 which you can confirm by converting everything to decimal and adding in decimal
1100 hex is 4352 decimal
3301 hex is 13057 decimal
decimal total =17409 which is 4401 in hex.
 
  • #4
Thanks. I got that answer and webassign said it was wrong so I will find out from the professor what the deal is.
 
  • #5
vk6kro said:
The calculator in Windows does it OK. Switch it to Scientific mode.

The answer is 4401 which you can confirm by converting everything to decimal and adding in decimal
1100 hex is 4352 decimal
3301 hex is 13057 decimal
decimal total =17409 which is 4401 in hex.

I added them in hex, got 4401 hex, and converting to decimal, 17409 decimal. Same as you. And 100010000000001 binary.

To the OP: If the webassign solution is telling you it's wrong, well, then, it certainly wouldn't be the first time an instructor got the answer wrong! However, before you accuse him of getting a wrong answer, please make sure you copied the original two numbers correctly!
 

1. What is hexadecimal?

Hexadecimal is a number system that uses a base of 16. It uses 16 distinct symbols, including the numbers 0-9 and the letters A-F, to represent values.

2. How do you add numbers in hexadecimal?

In hexadecimal addition, you add numbers just like in decimal addition, but you also need to carry over any values greater than 9. For example, adding 6 + D (13 in decimal) would equal 13 (D in hexadecimal).

3. Can you give an example of a simple hexadecimal addition question?

Sure, here's an example: 5 + B = ? In hexadecimal, this would be 5 + 11 = 16. Since 16 is greater than 9, we need to carry over the 1 to the left, making the answer 16 = 10 in hexadecimal.

4. Why is hexadecimal used in computing?

Hexadecimal is commonly used in computing because it provides a more compact and efficient way to represent binary numbers. Since each hexadecimal digit can represent 4 binary digits, it is easier to work with and understand for computer programmers.

5. Is it possible to convert hexadecimal to decimal?

Yes, it is possible to convert hexadecimal to decimal by using the place value system. Each digit in a hexadecimal number represents a power of 16, starting from the right. For example, the hexadecimal number 2A would equal (2 x 16^1) + (A x 16^0) = 42 in decimal.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
6
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
10K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Programming and Computer Science
Replies
3
Views
929
  • Calculus and Beyond Homework Help
Replies
5
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
4K
Back
Top