Search This Blog

Wednesday, February 22, 2012

Integer Addition Algorithm

Post the algorithm you wrote for addition of integers.

25 comments:

  1. When 2 numbers that have the same sign,you add them together the sum has the sign that both number have -8+-3=-11

    When 2 numbers have different signs you find the different between the two numbers. The 'sum'/answer has the same sign as the larger number
    8+-12=-4 12-8=4
    -4
    I had no help, no lie

    ReplyDelete
    Replies
    1. Yamni- Great examples. Nicely done hitting both types of problem for the assignment.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. When any two numbers that have the same like sign like Positive + or Negative-

    1+8+=9+

    3-4-=7-

    ReplyDelete
    Replies
    1. When 2 numbers have different symbols the sum will have the same symbol as the large number :)

      Delete
    2. 3-4= -7...better double check that. I think that you are forgetting a sign in there somewhere because those numbers do not have the same sign. Also- what do you do to the two numbers with different signs. Nice explaining that it will have the sign of the larger number.

      Delete
    3. When you have two positive numbers you have to add them together same with negative numbers you have to add them together but when their is one negative number and positive number you have to subtract each other ex I
      V
      Positive +1+7=+8
      Negative -1+7=-8
      Both -1-+7=+6

      Delete
  4. when adding two #s with the same sign add the two #s and put the sign the #s have in front of the sum.

    When adding two #s with different signs add them but the sum's sign is the one who has the larger #.

    ReplyDelete
    Replies
    1. Can you give an example of the second one...adding two numbers with different signs. I just want you to prove this. For example try, -4 + 10 = N. What would N be? What did you do to get it?

      Delete
  5. Any two numbers that have the same symbol Positive + or Negative -


    +9+1=+10

    -9-1=-8

    ReplyDelete
    Replies
    1. Your second example doesn't have two numbers with the same sign. -9 + -1 = N. What about when two numbers have different signs?

      Delete
  6. with the same sign just add and put the same sign on the sum
    with not the same sign you brow from the larger number and try to make (0) and what is left over is the sum and don't do anything to it or the sign

    ReplyDelete
    Replies
    1. like 9+3=12
      -8+9=1

      me me me done

      JE55E

      Delete
    2. Can you provide an example that shows you borrowing from the larger number to make zero for numbers that have different signs? That might help make it a little more clear.

      Delete
  7. When you have to positives you add them together and make another positive
    when you have two negatives you add them together and make another negative
    when you have a positive and a negative you subtract them and you keep the sign of the bigger number.

    ReplyDelete
    Replies
    1. Devan!!! Beautiful!!! The only thing that would enhance this is examples. Give it a try!!

      Delete
  8. if they are both negative or positive you add them and keep the sine.

    ReplyDelete
  9. you subtract and keep the sign of the one that has the most.

    ReplyDelete
  10. when they had the same sign, I added them and kept the sign.

    when they had different signs, i subtracted them and kept the bigger sign?

    -donetta youngbear-

    ReplyDelete
    Replies
    1. Nice, but why is there a question mark at the end of the 2nd statement? Are you not 100% sure? Try some examples on here and see if your conjecture is true.

      Delete
    2. uhh...im 100% sure....and do i have to do some example?

      examples:
      when they have the same signs-
      -2+-3=-5
      10+5=15

      when they have different signs-
      10+-15=-5
      -20(+)+20=0

      Delete
  11. examples:
    when they have the same signs add-
    -3+-2=-5
    5+10=15

    when they have different signs subtract-
    -15+-10=-5
    +20(+)-20=0

    ReplyDelete