ArrayStack

Cancelled Posted Feb 23, 2015 Paid on delivery
Cancelled Paid on delivery

[url removed, login to view] and code Stack hierarchy including StackInterface and ArrayStack

as described in Chapter 3 text, diagrams and source code.

[url removed, login to view] 3 new methods for StackInterface, ArrayStack and LinkedStack: (extra credit for ArrayStackList)

[url removed, login to view] – Ex. 29, 42 Chapter 3

Create a toString method for the ArrayStack class. This method should create and return a string that correctly represents the current stack. Such a method could prove useful for testing and debugging the ArrayStack class and for testing and debugging applications that use the ArrayStack class.

Create a toString method for the LinkedStack class. This method should create and return a string that correctly represents the current stack. Such a method could prove useful for testing and debugging the LinkedStack class and for testing and debugging applications that use the LinkedStack class.

[url removed, login to view] – Ex. 34a , 44 Chapter 3 as defined in Ex. 20

In compiler construction, we need to be able to pop more than one element at a time, discarding the items popped. To do so, we provide an int parameter count for popSome method that removes the top count items from the stack. The new method should throw StackUnderflowException as needed.

(34a) Implement popSome for ArrayStack class.

Excercise 20 described a popSome method for stack. Implement popSome for the LinkedStack class.

[url removed, login to view] – Ex. 42 Chapter 3 (for all implementations)

[url removed, login to view] applications to test all new and existing methods

[url removed, login to view] or batch is your choice (both for extra credit)

[url removed, login to view] addition, perform the tasks as described in Ex. 30, Chapter 3.

(You may use the methods of ArrayStack that you created in Step 2.)

Write a segment of code (application level) to perform each of the following operations. Assume myStack is an object of the class ArrayStack. You may call any of the public methods of ArrayStack. You may declare additional stack objects.

a. Set secondElement to the second element from the top of myStack, leaving myStack without its original top two elements.

b. Set bottom equal to the bottom element in myStack, leaving myStack empty.

c. Set bottom equal to the bottom element in myStack, leaving myStack unchanged.

d. Print out the contents of myStack, leaving myStack unchanged

Java Software Testing

Project ID: #7193498

About the project

1 proposal Remote project Active Feb 23, 2015

1 freelancer is bidding on average $25 for this job

nani01029x

Dear sir, I have done many projects in Java for student around the world and got some positive feedback from clients. You can check my profile for more information. Let me help you. I'm ready to get started right no More

$25 USD in 1 day
(77 Reviews)
5.4