logo Use SA10RAM to get 10%* Discount.
Order Now logo

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

expert
Riley FarroComputer science
(/5)

867 Answers

Hire Me
expert
Emily WeiData mining
(5/5)

986 Answers

Hire Me
expert
Jane SimaaLaw
(5/5)

923 Answers

Hire Me
expert
StatAnalytica ExpertSociology
(5/5)

755 Answers

Hire Me
Java Programming

ability to Describe several applications for various data structures.ability to Describe several applications for various data structures.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

course learning outcomes (CLOs):

CLO (1.2, 1.2) ability to Describe several applications for various data structures.

CLO (1.1, 1.2) ability to Recognize several different ways to implement data structures.

CLO (2.1, 2.2, 2.3) ability to Write programs that support various data structures.

CLO (2.1, 2.2, 2.3) ability to Analyze objects and data structures composed of objects.

Q1: Complete the following code segments and state its functionality: (6 Marks, 2 each)

protected class QueueNode

    { 

 }

What the method does:

public void initializeQueue()

    {

}

What the method does:

 public DataElement front() throws QueueUnderflowException

    {

}

What the method does:

Q2: Write Java code for each of the following: (4 Marks, 2 each)

Stack practices:

a.      Creating a Stack and Performing basic operations like push, pop and peek

b.      Other Stack Operations

  • Check if the stack is empty.

  • Find the size of the stack.

  • Search for an element in the Stack.

Q3: Answer the following: (14 Points)

Process Burst               Time                Priority

P1                    10                    3

P2                    1                      1

P3                    2                      3

P4                    1                      4

P5                    5                      2

The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0

  1. Draw Gantt charts illustrating the execution of these processes using FCFS, SJF scheduling.

  2. What is the waiting time of each process for each of the scheduling algorithms in part A?

  3. Which of the schedules in part A results in the minimal average waiting time (over all processes)?

  4. What are the problems that might be encountered in SJF scheduling algorithm?

 

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

Get Free Quote!

348 Experts Online