Pentadeca class that encapsulates a Pentadeca number value. THE USE OF ARRAYS IS NOT PERMITTED A Pentadeca number is one with 15 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E. The methods the class has are: public void read(), public void set(String), public void set(int), public void set(Pentadeca),public Pentadeca get(), public Pentadeca add(Pentadeca), public Pentadeca subtract(Pentadeca), public Pentadeca multiply(Pentadeca), public Pentadeca divide(Pentadeca), public Pentadeca add(int), public Pentadeca subtract(int), public Pentadeca multiply(int), public Pentadeca divide(int), public Pentadeca add(String), public Pentadeca subtract(String), public Pentadeca multiply(String), public Pentadeca divide(String), public boolean equals(Pentadeca), and public String toString(). ** Write private methods to check for valid character input, remove the base p character and set the sign.** Your class must consider both positive and negative values. Your class should have at least 3 constructors: a default constructor, an explicit constructor with an integer argument and an explicit constructor with a String argument. I will provide a main program as the demo. Recall the nature of numbers and their construction. 137

_{10}is 1 * 10

^{2}+ 3 * 10

^{1}+ 7 * 10

^{0}. In the same way 1A9

_{15 }would be 1 * 15

^{2}+ 10* 15

^{1}+ 9 * 15

^{0}. Given the decimal number 137

_{10}the digits can be determined using the integer operators / and %. 137 % 10 gives the 7, 137/10 gives 13. 13%10 gives 3 and 13/10 gives 1. 1%10 gives 1 and 1/10 gives 0. The digits base 10 of 137 are 1, 3, 7. The number 137

_{10}converted to base 5 would be 137%5 that gives 2, 137/5 gives 27. 27%5 gives 2, 27/5 gives 5. 5%5 gives 0, 5/5 gives 1. 1%5 gives 1 and 1/5 gives 0. This gives the base 5 number 1022

_{5}. 137

_{10}converted to base 15 would be 137%15 gives 2, 137/15 gives 9. 9%15 gives 9 and 9/15 gives 0. The number 137

_{10 }is therefore 92

_{15}.

### Recently Asked Questions

- What lesson did Livy expect the readers of his day to learn from the stories of the Sabine Women and Lucretia? Specifically what role did disciplina (or the

- explain the following terms in view of the country's educational reform: a ) Institutional Outcomes b) Program Outcomes c) Program Educational Objectives d)

- What is the highest level of protein structure in human insulin , which has two polypeptides of different mass linked by several disulfide bonds ?