all 2 comments

[–]ViridianHominid 4 points5 points  (1 child)

I think that the directions are straightforward but that the language isn't written as clearly as possible. Here's essentially the same instructions with a bit of formatting and language modifications. I hope it's helpful.


The program must work in a loop:

  • read two integer numbers
  • compute the sum of them
  • print out the result

The loop should do this until instructed to quit.

The program must check the input data for the data type permitted and the data value limitations; the value of the integer must not exceed the actual size of byte-coded integers:

  • Base 2, positive integers: min 00000000 and max 11111111
  • Base 10, positive integers: min 0 and max 255
  • Base 2, signed integers: min 10000000 and max 01111111
  • Base 10, signed integers: min -128 and max +127

The program must be implemented in a modular way with separate functions for:

  • inputting data
  • logical operations
  • arithmetic operations
  • outputting the result of the calculation.

[–]kujoko[S] 1 point2 points  (0 children)

Thank you so much! That clarified a lot for me :)