Question: Problem 3 -Write a program Submit a program called: DecTern.java Create a program that converts between decimal (base 10) and ternary (base 3). The ternary

Problem 3 -Write a program Submit a program called: DecTern.java Create a program that converts between decimal (base 10) and ternary (base 3). The ternary base system is composed of the following unique symbols: 0, 1, 2. You may find it helpful to look at class code and the previous HW. You should, at a minimum, create the following methods: 1) A method that intakes a base 10 number and returns a base 3 number. 2) A method that intakes a base 3 number and returns a base 10 number. 3) A method that gets user input. If you do not create these methods, you will not receive any credit for this problem. You are also welcome to create any helper methods The program should have the following functionality: 1) The user should be able to enter a number in base 10 or base 3. There should be some sort of indication of the base the number is in so that you know which type of conversion you will be doing. 2) The program should then convert the number to the opposite base. For example, if the user entered a number in base 10, the program should convert the number into base 3. 3) The program should continue prompting for input and converting until the user enters the word "exit" No sample run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
