Web development and programming
191828 questions • Page 323 / 3837
2. (12 pts) Within your Lab6HW folder, create a new file named FindModes.java. W
2. (12 pts) Within your Lab6HW folder, create a new file named FindModes.java. Write a program that displays the mode(s) of a 1D int array. The mode is the number in the array tha…
2. (12 pts). Circle ALL of the correct answers from the given choices (there may
2. (12 pts). Circle ALL of the correct answers from the given choices (there may be more than one correct answers). 1) Unary (recursive) relationship type (3 pts) a. Employees sup…
2. (13 Points) Write a program Sales.py that performs the following, A retail st
2. (13 Points) Write a program Sales.py that performs the following, A retail store sale T-shirts. T-shirt cost $8.99 each. Sales tax is 8.5%. Define a function called totalcost, …
2. (14 points) A group of friends is organizing a ski trip. Write a program Cost
2. (14 points) A group of friends is organizing a ski trip. Write a program CostEstimate.java that performs the following, Hotel room cost is $120 per day and is limited to 4 peop…
2. (15 Points) For each of the following actions, state whether it happens at co
2. (15 Points) For each of the following actions, state whether it happens at compiler construction time (i.e., when developing the compiler) compile time (i.e., when compiling or…
2. (15 Points) Write a complete, working bash script called euidB (where \"cuid\
2. (15 Points) Write a complete, working bash script called euidB (where "cuid" is your EUID) that does the following: .Due to Blackboard limitations, the name of this bash script…
2. (15 points) Create a test plan with sample data for the following problem. Yo
2. (15 points) Create a test plan with sample data for the following problem. You do not have to calculate expected results, but please explain why each test case was chosen as re…
2. (15 points) For each of the following, determine if the statement is true or
2. (15 points) For each of the following, determine if the statement is true or false. If the statement is true you must clearly explain why. If the statement is false you must cl…
2. (15 pts XC) We saw in class that for sets A and B, the cardinality of their u
2. (15 pts XC) We saw in class that for sets A and B, the cardinality of their union is given by: Prove the following analogous rule for the union of three sets: Hint: Start by tr…
2. (15 pts) For the following relational schema, ProductId ProductName Catld Cat
2. (15 pts) For the following relational schema, ProductId ProductName Catld CatName Price And the following given functional dependencies (besides the one implied by the primary …
2. (15 pts) Given a sequence of n numbers A-(al.a2.. . . , an) and a target valu
2. (15 pts) Given a sequence of n numbers A-(al.a2.. . . , an) and a target value v, you are asked to decide if there is an element in A that is greater than v. If there is, the o…
2. (15 pts) What is the output of the ollowing program? Show all of your work fo
2. (15 pts) What is the output of the ollowing program? Show all of your work for partial credit Hint: Remember that ASCII characters have a numeric value, and are in alphabetical…
2. (15 x 2 = 30 points) Let A = {9,11,10, 5,4), show the hash tables (with the s
2. (15 x 2 = 30 points) Let A = {9,11,10, 5,4), show the hash tables (with the size m-5) for these 5 numbers 1. For chaining hash table, use the hash functionh)mod 5. 2. For open …
2. (16 points) Suppose we can have at most five threads in the critical section
2. (16 points) Suppose we can have at most five threads in the critical section at any one time. Complete the following Go program so that it ensures that there are at most five t…
2. (2 points) The most efficient type of I/O is ________. a) Direct Memory Acces
2. (2 points) The most efficient type of I/O is ________. a) Direct Memory Access (DMA) b) Programmed I/O c) Programmed I/O with Interrupts 3. (2 points) The least efficient type …
2. (2 pts) Let\'s reconsider the Towers of Hanoi problem. Recall that the monks
2. (2 pts) Let's reconsider the Towers of Hanoi problem. Recall that the monks had 64 discs, and once they solved the problem, the world would end. Thankfully, they didn't solve t…
2. (2.5 pts) In our flu virus simulation discussed in class, suppose that our ca
2. (2.5 pts) In our flu virus simulation discussed in class, suppose that our canvas is 600 pixels wide and 400 pixels high, but we still want to display the same 400 people as re…
2. (20 points) Consider approximating derivatives of f(x) on la, o with finite d
2. (20 points) Consider approximating derivatives of f(x) on la, o with finite difference formulas. First, divide the function domain la, b] into n equi-distant sub-intervals: whe…
2. (20 points) Network Address Translation (NAT) A. (5 points) Explain why NAT c
2. (20 points) Network Address Translation (NAT) A. (5 points) Explain why NAT can be viewed as a means of extending the utilization of IPv4 addresses. B. (5 points) Name an addit…
2. (20 points) Please write a stored procedure named pHW2 2 xxxx based on the Ho
2. (20 points) Please write a stored procedure named pHW2 2 xxxx based on the Hotel, Room and Booking tables. Your program should take one argument hotelname and it should meet th…
2. (20 pt) Trace the following program, show how values change (16pt) ?nmemory,
2. (20 pt) Trace the following program, show how values change (16pt) ?nmemory, and give the output (4pt). include typedef struct ( name ress ontent V alue int x; int y: ) fractio…
2. (20 pts) Consider the list of lists object created by the following statement
2. (20 pts) Consider the list of lists object created by the following statement: This creates the equivalent of a 3-by-3 matrix. For each of the following, give the Python statem…
2. (20 pts) Examine the mystery method and hand simulate the call nystery(start)
2. (20 pts) Examine the mystery method and hand simulate the call nystery(start): using the linked list below. Cross out ALL pointers that are replaced and Write in new pointers. …
2. (20 pts) Now, consider the following practical problem. Suppose that you\'re
2. (20 pts) Now, consider the following practical problem. Suppose that you're in charge of picking a set of experiments to be launched into space. Each experiment has an ID numbe…
2. (20 pts.) The following algorithm returns the median of three numbers. Add as
2. (20 pts.) The following algorithm returns the median of three numbers. Add assert statements that describe what is true (or should be true) before the procedure starts, before …
2. (20pts) Consider the following variation of Activity Selection problem: Input
2. (20pts) Consider the following variation of Activity Selection problem: Input: A set of n task a1, a2,.., an each expressed as ai-(ri di) where r is the release time, and di th…
2. (24 points) Consider a system where there are 3 processes, A, B, and C. Their
2. (24 points) Consider a system where there are 3 processes, A, B, and C. Their details are as follows: A: Arrival time = 0, CPU-I/O cycle = B: Arrival time = 2, CPU-I/O cycle = …
2. (24 points) Consider the following version of Partition for the quicksort alg
2. (24 points) Consider the following version of Partition for the quicksort algorithm. Partition (A, p, r) x = A[p] i=r+1 for (j = r; j p; j-) i=i-1 exchange A[i] and ALj] exchan…
2. (25 points) Five batch jobs A through D arrive at a computer center in the or
2. (25 points) Five batch jobs A through D arrive at a computer center in the order A to D at almost the same time. They have estimated running times of 6, 5, 1, and 2 time units.…
2. (25 points] Define class Rectangle and test it in class RectangleTester. (A)
2. (25 points] Define class Rectangle and test it in class RectangleTester. (A) Write complete code to define class Rectangle, which represents a rectande shape. (1) The data memb…
2. (3 points)Pseudoinstructions give MIPS a richer set of assemblylanguage instr
2. (3 points)Pseudoinstructions give MIPS a richer set of assemblylanguage instructions than those implemented by the hardware. The assembler isresponsible for translating the pse…
2. (30 points) Bob, the builder, has a set N of n nuts and a set B of n bolts, s
2. (30 points) Bob, the builder, has a set N of n nuts and a set B of n bolts, such that each nut in N has a unique matching bolt in B. Unfortunately, the nuts in N all look the s…
2. (30 points) Some architectures support the \'memory indirect\' addressing mod
2. (30 points) Some architectures support the 'memory indirect' addressing mode. Below is an example where register R5 contains a pointer to a pointer and two memory accesses are …
2. (30 points) This problem is based on Elmasri\'s company database. For each of
2. (30 points) This problem is based on Elmasri's company database. For each of the following, specify the query using SQL : this is a paper and pencil problem, you do not need to…
2. (30 points) This problem is based on Elmasri’s company database. For each of
2. (30 points) This problem is based on Elmasri’s company database. For each of the following, specify the query using SQL : this is a paper and pencil problem, you do not need to…
2. (30 pts) (Problem 9.11): Given the system of equations -3X2 + 7X3-2 x1 + 2x2-
2. (30 pts) (Problem 9.11): Given the system of equations -3X2 + 7X3-2 x1 + 2x2-x3 3 5x1-2x22 a) Write the equations into the format of Ax = b; b) Compute the determinant of A usi…
2. (30 pts) Develop a structured C program to calculate the perimeter of a trian
2. (30 pts) Develop a structured C program to calculate the perimeter of a triangle. Your program must be structured as follows: main program and one function Main program inputs …
2. (30 pts) Given the single-linked list below, assume that the variable tail re
2. (30 pts) Given the single-linked list below, assume that the variable tail references the last Node SingleLinkedList Node Node Node Node head next data = next data = next = dat…
2. (30) Using ML (or Scheme or some \"functional-algorithm-language\" like ML or
2. (30) Using ML (or Scheme or some "functional-algorithm-language" like ML or Scheme), define the following functions: a) evens(X) to create a list consisting of every other elem…
2. (35 points) Imagine that you are the head of information technology for a fas
2. (35 points) Imagine that you are the head of information technology for a fast-growth e-commerce start-up. You are in charge of development of the company's Web site. Consider …
2. (4 points) Consider the following boundary value problems involving both firs
2. (4 points) Consider the following boundary value problems involving both first and second derivative -u"(x)+u"(x) + u(x)=2sin(x) + cos(x), a(0)=0, u(1)=sin(1) xE [0, 1] The exa…
2. (4 points) This is the Wumps world problem which has 4 x 4 squares PIT PIT PI
2. (4 points) This is the Wumps world problem which has 4 x 4 squares PIT PIT PIT Let Pij be true if there is a pit in [i, j]. Let Wii be true if there is a wumps in [ij] LetAJ, b…
2. (4 points) This is the Wumps world problem which has 4 x 4 squares. PIT PIT P
2. (4 points) This is the Wumps world problem which has 4 x 4 squares. PIT PIT PIT Let Pij be true if there is a pit in [i,j]. Let Wij be true if there is a wumps in [i,j] Let Bij…
2. (4 pts) List the trip ID and trip name for all trips that start in Bar Harbor
2. (4 pts) List the trip ID and trip name for all trips that start in Bar Harbor. Your query should ignore the case of how Bar Harbor is entered in the query. For example, a trip …
2. (4 pts) What made Ubuntu different from the commercial versions of Linux that
2. (4 pts) What made Ubuntu different from the commercial versions of Linux that existed before it? 3. (4 pts) Who was the founder of the company that created Ubuntu, and what is …
2. (40 points) You have a large collection of images, image, image,, mage that y
2. (40 points) You have a large collection of images, image, image,, mage that you wish to store on 100GB USB flash drives. You are given an array size, where size[i] is the size …
2. (40 pts Write a function that takes a linked list of integers and rearranges
2. (40 pts Write a function that takes a linked list of integers and rearranges the nodes so that the integers stored are sorted into the order smallest to largest, with the small…
2. (40pts) Relation: Prompt users to input 3 integers a, b and c. Define the rel
2. (40pts) Relation: Prompt users to input 3 integers a, b and c. Define the relation R as "less than or equal" (a) Print out all valid relations among a, b and c. Just print out …
2. (4pt) Complete the following program that reads a given text file and counts
2. (4pt) Complete the following program that reads a given text file and counts the number of a given keyword in it. Count only the whole words that are separated by one or more w…
2. (5 points) A safe has five locks, vw.x.y.z, all of which must be unlocked for
2. (5 points) A safe has five locks, vw.x.y.z, all of which must be unlocked for the safe to open. The keys to the locks are distributed among five executives in the following man…
Subject
Web development and programming
Use Browse or pick another subject.