Question: Write a program that accepts two four-digit octal numbers, converts them to decimal, adds them together, and prints both the decimal and octal result of
Write a program that accepts two four-digit octal numbers, converts them to decimal, adds them together, and prints both the decimal and octal result of that addition. You may assume the user will only give numbers that will add up to 7777, so do not worry about doing checks above that. Also built in Java methods that does this conversion automatically (such as Integer.parseInt(String,8)) WILL NOT be accepted.
(such as Integer.parseInt(String,8)) WILL NOT be accepted.
(such as Integer.parseInt(String,8)) WILL NOT be accepted.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
