Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your tark is to create the class that is discussed in chapter 4 , programming project 1 0 on page 2 4 9 of your
Your tark is to create the class that is discussed in chapter programming project on page of your textbeok. You must use a linked list of integers to store the numben. The use of the IatWiode class unaltered that we discussed in elass from chapter is required. There is a fresh copy of this class in with this assignment. The Unbeundedint class will contain three or four instance variables:
An integer called manyNedes that equals the number of Nodes
Link to front of list, called fcent
Link to back of list, called back
Optional a curnor that points to an lntNode within the list
No OTHERS
The idea of this class is to allow mumerical valuesintegers that are of any size and not limited to bitsint or butslong of storage. To do this we will use a linked list of lotNode objects. Each Node will coetain an integer value from zero to When values of all nodes are listed tosether, this will allow us to store values with almost unlimited size unless connuter nomory is used up NOTE: We can assume that we will only be storing positive numbers for this project.
Although you can sofe the repersentation of your numbers in either way, it makes more sense if you do the lower value terma at the front of the list. For exangple, to represent the number you would put a in the first Node, then a in the rocond and I in the thind. This order will help you when you are antempting to add or multiply two numbers of unknown length. Note: each node is assumed to store digits of the full number, so values of less than are saill storine place holders.
Example:
front
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started