0% found this document useful (0 votes)
49 views

Lab 9: Itecalculator: Binaryarithmetic

This lab asks students to continue developing their ITECalculator program to perform binary arithmetic operations. Students are instructed to: 1. Add methods to perform binary addition, subtraction, multiplication and division to the BinaryArithmetic class. 2. Add a method to calculate the 2's complement to the Complement class. 3. Add JavaDoc comments for each method. Students are told to implement the methods based on rules learned in a previous computer fundamentals course and are directed to review a specific textbook chapter if needed.

Uploaded by

Chhay Lay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Lab 9: Itecalculator: Binaryarithmetic

This lab asks students to continue developing their ITECalculator program to perform binary arithmetic operations. Students are instructed to: 1. Add methods to perform binary addition, subtraction, multiplication and division to the BinaryArithmetic class. 2. Add a method to calculate the 2's complement to the Complement class. 3. Add JavaDoc comments for each method. Students are told to implement the methods based on rules learned in a previous computer fundamentals course and are directed to review a specific textbook chapter if needed.

Uploaded by

Chhay Lay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

សាកលវ ិទ្យាល័យភូ មិន្ភ

ទ ំ ពន េញ 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.

You might also like