51.8k views
3 votes
Use the singly linked list class introduced in the lab to implement integers of unlimited size. Each node of the list should store one digit of the integer. You are to implement the addition, subtraction and multiplication operations. Please note that any additional data structure to be used in solving this problem has to be taken from the ones introduced in the ICS 202 lab. In addition, provide a test class that will do the following: It will keep asking the user to enter two integers, choose one of the operations (addition, subtraction, multiplication) and then display the result. The program will stop upon entering the "#" character (without the double quotes).

User Hugues BR
by
7.9k points

1 Answer

5 votes

Final answer:

The subject of this question is implementing operations on integers of unlimited size using a singly linked list class.

Step-by-step explanation:

The subject of this question is Computers and Technology. This question involves implementing operations (such as addition, subtraction, and multiplication) on integers of unlimited size using a singly linked list class.

The solution should use only the data structures introduced in the ICS 202 lab. Additionally, a test class should be provided to ask the user for two integers, select an operation, and display the result.

User America
by
8.2k points