Catrobat

Implement a BINARY calculator

Implement a BINARY calculator with Pocket Code! The first thing you will have to do is to do some reserach about binary numbers and how to do calculations with them. This part is best done with pen & paper!

Example: 0100 1100 & 1011 1000 = 0000 1000 0100 1100 | 1011 1000 = 1111 1100

The following operations must be included: Addition, Subtraction, Multiplication (left shift), Division (right shift), Logic OR, Logic AND, Logic NOT, Logic XOR

The input needs to consist of at least 3 digits. The output should be capable of displaying 4 digits.

Make your program visually appealing and userfriendly. On a several screen explain how the operations work with small examples.

Restrictions: DO NOT REMIX AN EXISTING PROJECT

Optional: Implement additional logical functions such as NAND, XNOR, ...

Task tags

  • binary
  • math
  • algorithm
  • logical functions

Students who completed this task

exe, MiteshG007, Martina Hanusova, Thea M, Ɓukasz Ameljan, AAA2003

Task type

  • code Code
close

2018