Question: You will, using object-oriented principles, design a class from a problem description and implement it as a working Java program. Specifically, you are tasked with

You will, using object-oriented principles, design a class from a problem description and implement it as a working Java program.

Specifically, you are tasked with implementing a class that will convert numbers to and from base-26 (Hexaicosadecimal).

The Problem Youll all be familiar with our normal base-10 (decimal) number system:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9 You should also be familiar with base-2 (binary), in which there are only two values:

0, 1

There are several other number systems that are important to computer scientists, including base-8 (octal):

0, 1, 2, 3, 4, 5, 6, 7 And base-16 (hexadecimal):

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f

Ive got a typewriter on which, unfortunately, all the number keys are broken. But I still want to do maths! Luckily, all the letter keys work, so Ive got a handy set of 26 symbols laying around. So Im in luck: All I have to do is write out my numbers in base-26 (hexaicosadecimal)!

a

0

h

7

o

14

v

21

b

1

i

8

p

15

w

22

c

2

j

9

q

16

x

23

d

3

k

10

r

17

y

24

e

4

l

11

s

18

z

25

f

5

m

12

t

19

g

6

n

13

u

20

[Assign2$java HexaicosademcailNumber Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: h Please enter your hexaicosadecmial number: game game (105772.0) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: h Please enter your hexaicosadecmial number: game.over game.over(105772.56979141137) Please enter'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: h Please enter your hexaicosadecmial number: -game -game (-105772.0) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: d Please enter your decimal number: 1234 bvm (1234.0) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: d Please enter your decimal number: 1234.5678 bvm.otvqzh (1234.5678) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: d Please enter your decimal number: -1234 -bvm (-1234.0) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: h Please enter your hexaicosadecmial number: bvm.otvq bvm.otvq (1234.5677978712226) Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: s INVALID INPUT Please enter 'h' to convert from hexaicosadecmial to decimal,or 'd' to convert from decimal,or 'q' to quit: q

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!