Program takes input from a text file and will add numbers of the same base in any base
Example of the text file (brackets symbolize something for you to note, not actually write in an input file):
4 [number of times to repeat operation]
10 [base of the following numbers]
6 [number1]
6 [number2]
[note: you can have as many of these blank line seperated "input blocks" as you wish]
Example of program being executed: java baseKaddition inputFile.txt
output is:
The base of the numbers to add is 10
The first number is 6
The second number is 6
The sum is 48
graysoncroom/BaseCalculator
Program takes input from a text file and will add numbers of the same base in any base. This was the Bpa Java test in 2012, I did it for practice.
Java