subject

Write a program using any high level language (Java, to help you convert from binary, octal, hexadecimal and decimal numbers. Your program would β€’ ask the users to enter a number in binary or decimal
β€’ ask the users what type of number it is (binary or decimal)
β€’ check to make sure the number is legal (a decimal number contains only 0-9).
If the number is not legal, it should error out! If the number is legal, convert the number to the other 3 types
To challenge yourself, your program should also handle floating numbers although this step is NOT required.
NOTE: As always, properly document your program. Add in headers. Add in comments.
You CANNOT use pre-defined built in functions to do the conversion such as the followings and others!!
Integer. toString(n,8) // decimal to octal
Integer. toString(n,2)// decimal to binary
Integer. toString(n,16) //decimal to Hex
Your program needs to mimic the algorithm. Use the division/multiplication method.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
Answers: 1
You know the right answer?
Write a program using any high level language (Java, to help you convert from binary, octal, hexadec...
Questions
question
Mathematics, 16.09.2020 20:01
question
Geography, 16.09.2020 20:01
question
Geography, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
English, 16.09.2020 20:01
question
Physics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
French, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Social Studies, 16.09.2020 20:01
question
History, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
question
Mathematics, 16.09.2020 20:01
Questions on the website: 13722367