Java linklist Code
Home Work Problem.
I understand what the program is suppose to do, but I do not understand how to implement it using Link List.
Please help me to understand the problem.
Write a program to perform ariththmetic with integers of unlimited size. You must read data from the input file, input.txt and send output to the file, output.txt.
Each data line has the following format:
number1 operator number 2, where the operator can be one of +, - or *. The operator is preceeded and followed by one or more spaces.
For + and -, Number1 and Number 2 are to be treated as large integers and each must be stored in a link list. Output the given expression and on the next line print the answer. For example,
22222233333333 + 4444455555 =
For *, Number1 is a large integer to be stored in a linked list. Number2 is a small integer whcih can be stored in an int variable. Output the given expression ans on the next line, print the answer for example,
23222222222222 * 7 =
the last line of data contains a zero.
Please help me to under the algorithm in solving this problem
|All times are GMT +5.5. The time now is 15:02.|