Question Details

[answered] 12/14/2016 CSC205:Assignment:#Queue Assignment: #Queue Due:


need help with a java project. ?Can someone do this today?

i have this begun, but I'm not sure if it's easier to start from scratch.?

A queue has to be implemented using a linked list (using file provided), and testing it done using a menu created earlier (also attached).


12/14/2016 CSC205::Assignment::#Queue Assignment: #Queue Due: 11/02/2016 Points: 7 Specification

 

Design and implement a class Queue that supports queues by extending SinglyLinkedList.java (i.e.

 

your queues are singly?linked?lists). Documentation for SinglyLinkedList.java is its code and

 

comments that are found in the code.

 

class Queue must support the following instance methods. public Queue(); // creates a Q with capacity 8 (the default capacity) public Queue(int capacity); public Queue enqueue(Object elem) throws IllegalStateException; // throw exception if Q is full (i.e. at capacity) // return "this" to enable chaining public Object dequeue() throws NoSuchElementException; // throw exception if Q is empty public Object front() throws NoSuchElementException; // throw exception if Q is empty public int getCapacity(); // return Q's capacity public void setCapacity(int newcapacity) throws IllegalArgumentException; // throw exception if capacity less than 0 // if newcapacity < capacity and size > newcapacity, // then truncate Q to newcapacity public int size(); // return number of elements in the Q public boolean isEmpty(); // true if size is zero public boolean isFull(); // true if size equals capacity public String toString(); // return a string representation of the Q The main() method of your program should contain code to test class Queue objects. This program

 

can use your Menu and MenuItem classes. Queue Test Menu =============== 1) enqueue 2) dequeue 3) front 4) print 5) get size 6) get capacity 7) set capacity 8) is full? http://azfoo.net/gdt/csc205/assignments/queue.html 1/2 12/14/2016 CSC205::Assignment::#Queue 9) is empty? 10) Exit http://azfoo.net/gdt/csc205/assignments/queue.html 2/2

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 18, 2020

PRICE: $15

Solution~0001001749.zip (25.37 KB)

Buy this answer for only: $15

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy from our tutoring website www.aceyourhomework.com (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 18, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now