logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Jane SimaEducation
(5/5)

936 Answers

Hire Me
expert
Mario FuscoOthers
(5/5)

931 Answers

Hire Me
expert
Raymond BarbeauGeneral article writing
(5/5)

806 Answers

Hire Me
expert
Bruce BachinskyyScience
(5/5)

750 Answers

Hire Me
Others
(5/5)

the idea of this class is to allow numerical values(integers) that are of any size and not limited to 32 bits

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Each student must do the work on this project by themselves unless they have notified and received permission to work with another by the instructor.  You are only allowed to work in pairs or alone.  You are not allowed to use a previous student’s work, share a current students work, or find a solution online and use it.  Doing so will have consequences far worse than just a zero on this assignment.  Taking credit for work you have not done is unethical. Note: making minor changes to an existing solution is not considered doing the work.  Any work that ends up in your projects that is not your own, must be cited as such.  You will lose credit for parts of your projects that are not yours, but you will not be accused of plagiarism so long as you do not take credit for it.  Any plagiarism will result in an automatic zero on this assignment, and possible withdrawal from this class.

 

Project # 2  Implementation of UnboundedInt class

 

Your task is to create the class that is discussed in chapter 4, programming project 10 on page 249 of your textbook.  You must use a linked list of integers to store the numbers.  The use of the IntNode class (unaltered) that we discussed in class from chapter 4 is required.  There is a fresh copy of this class in with this assignment.  The UnboundedInt class will contain three or four instance variables:

·         An integer called manyNodes that equals the number of Nodes

·         Link to front of list, called front

·         Link to back of list, called back

·         Optional – a cursor that points to an IntNode within the list

·         NO OTHERS

 

The idea of this class is to allow numerical values(integers) that are of any size and not limited to 32 bits(int) or 64 bits(long) of storage.  To do this we will use a linked list of IntNode objects.  Each Node will contain an integer value from zero to 999.  When values of all nodes are listed together, this will allow us to store values with almost unlimited size (unless computer memory is used up).   NOTE: We can assume that we will only be storing positive numbers for this project.

 

Although you can store the representation of your numbers in either way, it makes more sense if you do the lower value terms at the front of the list.   For example, to represent the number 12,453,075 you would put a 75 in the first Node, then a 453 in the second and a 12 in the third.  This order will help you when you are attempting 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 still storing place holders.

 

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme