សាកលវ ិទ្យាល័យភូ មិន្ភ
ទ ំ ពន េញ Java Programming
មហាវ ិទ្យយល័យវ ិស្វកមម ពោកគ្រូ៖ ពោ ស្ុខជា
ឆ្នំទ្យី២ ឆមាស្ទ្យី១ Lab 9
LAB 9: ITECalculator
In this lab, you will continue your ITECalculator that allows the user to do binary arithmetic
operations.
A. In the BinaryArithmetic class, please add the following methods
1. addWith2ndComplement to do the binary addition
2. substractWith2ndComplement to do the binary addition
3. multiply to do the binary multiplication
4. divide to do the binary division
B. In the Complement class, please add the following methods
1. secondComplement is used to find binary 2’s complement
C. Please add java doc comments in each method
Note: Please implement this three methods based on the rule that we learn in Computer
Fundamental course at year 1 semester 1. Please consult with chapter 2 of the book
again if you are facing problem with binary arithmetic.
Dey, P., & Ghosh, M. (2013). Computer Fundamentals and Programming in C (Vol.
2). Oxford University Press.