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 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
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. 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, 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 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
Thank you
In: Computer Science
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 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 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. Will something go wrong? Explain.
In: Computer Science
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
DRIVER – Lab5.cpp
Write a driver program (Lab5.cpp) that will do the following:
In: Computer Science
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
Digital Logic Design Lab
Prove the following Boolean Algebra theorems and properties by constructing Logic Circuits for each theorem/properties using our educational simulation software:
Q2-a) Prove that: aa’ = 0
Q2-b) Prove that: a+a’=1
In: Computer Science