Answered step by step
Verified Expert Solution
Link Copied!

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 4, programming project 10 on page 249 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 4 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 values(integers) that are of any size and not limited to 32 bits(int) or 64 buts(long) of storage. To do this we will use a linked list of lotNode objects. Each Node will coetain an integer value from zero to 999. 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 12,453,075 you would put a 75 in the first Node, then a 453 in the rocond and I 12 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 3 digits of the full number, so values of less than 100 are saill storine place holders.
Example:
front
-6,023,447,005
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions