Questions
In a one processor system, there is an interrupt clock which is set to a “time...

In a one processor system, there is an interrupt clock which is set to a “time slice Q”, that is, every Q an interrupt occurs to stop the process. There is only one I/O device in the system    which is interrupted when the process needs an I/O. There are 3 processes A, B, C.

    

     Process A executes an I/O interrupt every T units of time.

     Process B executes an I/O interrupt every 2T units of time.

     Process C executes an I/O interrupt every 3T units of time.

(a) Which of the above processes will benefit the most and which is not when Q = T.

      Explain your answer

(b) Which of the above processes will benefit the most and which is not when Q = 2T.

      Explain your answer

(a) Which of the above processes will benefit the most and which is not when Q = 3T.

      Explain your answer

What is the best value should Q takes for good performance ? explain your answer in full.

In: Computer Science

how the stemming and Lemmatization affect a ration of precision and recall with examples ? {does...

how the stemming and Lemmatization affect a ration of precision and recall with examples ? {does increase or decrease]

In: Computer Science

-if user select 3Duser needs to select the shape type (Cube, Cylinder, or Pyramid) after selected...

-if user select 3Duser needs to select the shape type (Cube, Cylinder, or Pyramid) after selected shape the user needs to specify whether to find the surface-Area and the volume using user-defined-constructor or default-constructor, accordingly the needed constructor is used. Important Points: 1- all selections must be done within an infinite loop such that the user selects to exit when needed. 2- all entered values need to be validated, otherwise, repetition occurs (must be re-entered again). 3- Any selection must create an instance (object) of the corresponding class, the object must test the class functionality by setting its values and displaying the output. 4- Summary Print() method should display the information in a proper way,

o User Name: jone

o Selected category : 2D

o Shape Name: square

o Side Length: 5 m3

o Volume: 29

o Surface Area : 60 m2

In: Computer Science

write an overview of a microprocessor

write an overview of a microprocessor

In: Computer Science

find the k-th smallest value given array[ 5, 2, 1, 15, 6, 9, 3, 4, 11]...

find the k-th smallest value

given array[ 5, 2, 1, 15, 6, 9, 3, 4, 11] , k=2, the algorithm return the first two value: 1, 2

please show steps of how to output the first 2 values by using merge sort

and please analyze the running time.

your time is greatly appreciated.

In: Computer Science

A system is composed of 4 components:➢The performance of 5% of the system can be doubled....

A system is composed of 4 components:➢The performance of 5% of the system can be doubled. We will call this part component 1➢The performance of 20% of the system can be improved by 80%. We will call this part component 2➢The performance of 45% of the system can be improved by 50%. We will call this part component 3.The performance of the remaining of the system cannot be improved. We will call this part component 4Using Amdahl's law, which component is most worthy to work on to get themaximum overall improvement?

In: Computer Science

Afterananalysis, we realize that 70% component of a problem can be run on a hexa-coreparallelmachine architecture,...

Afterananalysis, we realize that 70% component of a problem can be run on a hexa-coreparallelmachine architecture, and out of which 30% component is bound to run on an octa-core and 20% is bound to run on quad core only.What is the parallel speedup when runnin on a parallel machinewithout any parallelization overheads?

In: Computer Science

needs to be done in C++ Q3. Just just have to code the function and the...

needs to be done in C++

Q3. Just just have to code the function and the function call statement.

This program is for a Carpet Store. Create a function, named CarpetCost, that will have 3 parameters that are float values of length and width and price. The function will return the Total Cost of a piece of Carpet. The values for the Length and the Width is in Feet.   The price of the carpet is in Dollars per Square Yard.

The equation for the Area of the Carpet in Square Feet is: Area_sq_ft = length * width;

The equation for the Area in Carpet in Sqaure Yards is : Area_sq_yd = Area_sq_ft / 9.0;

The equation for the Price of the Carpet in Square Yards is : Price = Area_sq_yd * price;

Example RUN:

Enter the length and width of the Carpet > 5.5 9.5

Enter the price of the carpet in dollar.cents format ($##.##) > = 44.40

In: Computer Science

What type of optimum does backpropagation learn? How does batch mode learning work with backpropagation? Thank...

  1. What type of optimum does backpropagation learn?
  2. How does batch mode learning work with backpropagation?

Thank you

In: Computer Science

Use a switch statement on a char variable to write a function that's a simple calculator...

Use a switch statement on a char variable to write a function that's a simple calculator that keeps running waiting for input

Should have a do while loop that continually loops the function, prompting for a new input and new operator, until the calculator returns 0, in which case it will close.

In: Computer Science

write JAVA program have a public class named GeometricShapes that has the main() method. In the...

write JAVA program have a public class named GeometricShapes that has the main() method. In the main() method the user needs to select if he want 2D shapes or 3D shape -if user select 2D user needs to select the shape type (Square, Circle, or Triangle) after selected shape the user needs to specify whether to find the Area or the Perimeter or to find side-length (radius for the circles), accordingly the needed constructor is used. (using Polymorphism principle) -if user select 3Duser needs to select the shape type (Cube, Cylinder, or Pyramid) after selected shape the user needs to specify whether to find the surface-Area and the volume using user-defined-constructor or default-constructor, accordingly the needed constructor is used. Important Points: 1- all selections must be done within an infinite loop such that the user selects to exit when needed. 2- all entered values need to be validated, otherwise, repetition occurs (must be re-entered again). 3- Any selection must create an instance (object) of the corresponding class, the object must test the class functionality by setting its values and displaying the output. 4- Summary Print() method should display the information in a proper way,

o User Name: jone

o Selected category : 2D

o Shape Name: square

o Side Length: 5 m3

o Volume: 29

o Surface Area : 60 m2

In: Computer Science

Jojo the wizard is currently on a dragon’s lair. To escape from the lair, Jojo needs...

Jojo the wizard is currently on a dragon’s lair. To escape from the lair, Jojo needs to defeat the elder dragon. Jojo is currently a wizard under training, so he knows only one spell : the fireball spell. The dragon’s body can be represented as an array of size N , where each part of the dragon’s body, from its head to its tail, is numbered with integer from 1 to N. Each body part has its sensitivity to fire a i . If a i is positive, then the fireball spell will deal a i damage to the dragon. If a i is negative, it will heal the dragon by − a i health points instead. The fireball spell is a spell which deals damage to the dragon’s body on exactly K consecutive body parts. That is, if Jojo casts the spell on i-th body part, then the fireball will attack the parts [i, i+1, i+2, ..., i + K −1]. For example, if the dragon’s body is [1 , 2 , − 2 , 4 , 5], and K is 3, then Jojo may cast the spell on 1st, 2nd, and 3rd body part, which deals 1, 4, and 7 damage respectively. Jojo can’t cast the spell on 4 or 5 since the fireball must hit exactly K body parts of the dragon. As Jojo can only cast the spell one time, Help Jojo determine the maximum damage output he can deal to the dragon.

In: Computer Science

At the end of a service routine, suppose we have two RTI instructions one after another....

At the end of a service routine, suppose we have two RTI instructions one after another. Will something go wrong? Explain.

In: Computer Science

C++ ONLY -- LAB ASSIGNMENT DIFFICULT We have to turn in two files - List.h and...

C++ ONLY -- LAB ASSIGNMENT DIFFICULT

We have to turn in two files - List.h and Lab5.cpp

What should the code for those two files look like?

INSTRUCTIONS AS FOLLOWS:

What Should This Program Do?

Linked List Class

  • Design your own linked list class (List.h) to hold a series of strings.
  • The linked list node should be implemented as a struct.
  • The class should have member functions for appending, inserting, and deleting nodes.
  • You should also have a display function that will traverse the list & display each node’s value.
  • Don’t forget to add a destructor that destroys the list.

DRIVER – Lab5.cpp

Write a driver program (Lab5.cpp) that will do the following:

  1. Create a linked list object
  2. Call the linked list’s append function to append the following strings to your linked list. Afterwards, print to the screen to tell the user that you are inserting several strings to the list.
    1. “boogeyman”
    2. “ghost”
    3. “scarecrow”
    4. “witch”
    5. “zombie”
  3. Now call the linked list’s display function to print the list.
  4. Now call the linked list’s insert function to insert the “vampire” string in the correct sorted position. Print to the screen to tell the user that you are inserting “vampire” in to the list.
  5. Now call the linked list’s display function again to print the list.
  6. Now call the delete function to delete “ghost” from the list. Print to the screen to tell the user that you are deleting “ghost” from the list.
  7. Last, call the linked list’s display function again to print the list.

In: Computer Science

In html create a Watchlist page in which a user can create as many watchlist as...

In html create a Watchlist page in which a user can create as many watchlist as they wish. This page will contain the list of
watchlist, allow the user to create a new watchlist, and delete an existing one.
You have to implement the following:
a) A list of all the watchlist that a user has created. For now, you can randomly
create few.
b) An option to create a new watchlist. Make sure you ask the user what the new
watchlist should be named.
c) An option to delete a particular watchlist.

In: Computer Science