You are on page 1of 1

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

ទ ំពន េញ Java Programming


មហាវ ិទ្យយល័យវ ិស្វកមម ពោកគ្រូ៖ ពោ ស្ុខជា
ឆ្នទ្យ
ំ ី២ ឆមាស្ទ្យី១ Lab 6

LAB 6: ITECalculator
In this lab, you will continue your calculator application by adding the following features:

A. Add the following methods to the NumberSystemConversion class:

1. decimal2Binary(datatype decimal) to convert from decimal to binary

2. decimal2Octal(datatype decimal) to convert from decimal to octal

3. decimal2Hex(datatype decimal) to convert from decimal to hexadecimal

B. Add a new submenu "Decimal"

C. When the user choose "Decimal" submenu, it will show

1. Decimal

 Decimal to Binary
 Decimal to Octal

 Decimal to Hexadecimal

You might also like