S1 Java Prog Lab5 New
S1 Java Prog Lab5 New
LAB 5: ITECalculator
In this lab, you will continue your calculator application by adding the following features:
B. Please add Javadoc comment to above the class to explain the purpose of this
class and above each method to explain it.
D. Please add sixth menu item Number System Conversion to the menu
E. When user chooses menu number 6, it wills show a submenu containing the
following menu
1. Binary
Binary to Octal
សាកលវ ិទ្យាល័យភូមិន្ភ
ទ ំពន េញ Java Programming
មហាវ ិទ្យយល័យវ ិស្វកមម ពោកគ្រូ៖ ពោ ស្ុខជា
ឆ្នទ្យ
ំ ី២ ឆមាស្ទ្យី១ Lab5
Binary to Decimal
Binary to Hexadecimal
Note: In binary, it contains only number 0 and 1. So, please allow the user to input only 0
and 1 if user chooses this submenu. If the user inputs the number beside 0 and 1, please
2. Octal
Octal to binary
Octal to decimal
Octal to hexadecimal
Note: In octal, it contains only number from 0 to 7. So, please allow the user to input only
from 0 to 7 if user chooses this submenu. If the user inputs the number beside 0 to 7,
Note: You cannot use built-in function in Java to perform conversion. You need to
implement the method yourself based on the knowledge you learn in year 1.