Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Web development and programming

191828 questions • Page 374 / 3837

4. (8) Ordered-array implementation of a set. Suppose you implement the set data
4. (8) Ordered-array implementation of a set. Suppose you implement the set data type using an ordered array. That is, you maintain the N keys in the set in ascending order in an …
4. (9 points) Consider the following truth table: PQR ???? T T T F TTF F TF T T
4. (9 points) Consider the following truth table: PQR ???? T T T F TTF F TF T T TFF F FT F T Please write a proposition which would have the table above as its truth table. Answer…
4. (9 points) In each part of this question, build your counterexample with univ
4. (9 points) In each part of this question, build your counterexample with universe (domain) -1,0,1) You can define the predicate P(, y) differently for each part. To define the …
4. (Class 20 Points) Create a class called Account that represents customers\' b
4. (Class 20 Points) Create a class called Account that represents customers' bank accounts. In this class, the balance member of type int represents the account balance. Please i…
4. (Exercise 8.37 from Kleinberg & Tardos) There are those who insist that the i
4. (Exercise 8.37 from Kleinberg & Tardos) There are those who insist that the initial working title for Episode XXVII of the Star Wars series was "P NP" _ but this is surely …
4. (Extra credit: 5 pts) The following is the prototype for a function: void fac
4. (Extra credit: 5 pts) The following is the prototype for a function: void factors(int xI 1, int yl l. int YNI 1, int n); The function takes three arrays of size n: x, y, and YN…
4. (Extra) Give a simple example of a directed graph with negative weight edges
4. (Extra) Give a simple example of a directed graph with negative weight edges for which Dijkstra's algorithm fails. Your example should have the following properties: (1) Your g…
4. (Monkeys and Shakespeare, 15pt) The story goes that if a bunch of monkeys sta
4. (Monkeys and Shakespeare, 15pt) The story goes that if a bunch of monkeys start typing away at some typewriters (what we call keyboards now), they'll eventually produce all of …
4. (Partial Pivoting: MATLAB program) write a programa to find the LU partial pi
4. (Partial Pivoting: MATLAB program) write a programa to find the LU partial pivoting. The program should return the updated matrix A and the pivot vector p. In MATLAB, name your…
4. (Printing a single linked list backward) Include the reversePrint and recursi
4. (Printing a single linked list backward) Include the reversePrint and recursiveRev in the class linkedListType. Also, write a program (single) linked list backward. (Use either…
4. (TCO 2) A Waiter is responsible for taking the order from the Customer based
4. (TCO 2) A Waiter is responsible for taking the order from the Customer based on the menu, informing the Chef of the order and delivering the requested food back to the Customer…
4. (TCO 5) For the statement int *p, how many bytes of storage are allocated on
4. (TCO 5) For the statement int *p, how many bytes of storage are allocated on a Pentium class system using 32-bit addressing? (Points : 4) One Two Four Eight 5. (TCO 5) Consider…
4. (WiFi) (a) Why cannot the CSMA/CD work for the WiFi? (b) What is the hidden t
4. (WiFi) (a) Why cannot the CSMA/CD work for the WiFi? (b) What is the hidden terminal problem? (c) How can we resolve the hidden terminal problem? (d) Suppose that the back-off …
4. (a) The MOD number of a counter is equal to the number of complete states tha
4. (a) The MOD number of a counter is equal to the number of complete states that a counter goes through before it recycles back to its starting state. To construct a ripple count…
4. (i) What is the main difference between user-level threads and kernel-support
4. (i) What is the main difference between user-level threads and kernel-supported threads? (ii) For a client application in a client-server system would you use user-level thread…
4. 0 + 0 = 0 is _____________________________ for getting an A in this course. 6
4. 0 + 0 = 0 is _____________________________ for getting an A in this course. 6. If x is a node in a hierarchically organized tree structure, then it is _________________________…
4. 1 st Task: Create a program that uses a switch statement and case statements
4. 1st Task: Create a program that uses a switch statement and case statements to calculate the number of days in any given month based upon a users input. February is a unique mo…
4. 110) Reference Semantics The tollowing program produces ines of output Write
4. 110) Reference Semantics The tollowing program produces ines of output Write the output as it would appear when t program i import java.u public class BasicPoint ( intx int y p…
4. 120 pointsl Write a method, flipHorizontal, that would help implement the gam
4. 120 pointsl Write a method, flipHorizontal, that would help implement the game of reversi. Your method checks to see if the given symbol now surrounds a sequence ofopponent pie…
4. 2. Fix challenge 2 (python) Note : Your arguments are strings unless they are
4. 2. Fix challenge 2 (python) Note: Your arguments are strings unless they are converted into some other type. In this challenge, we are using decimals (float) rather than intege…
4. 3 x 10 30 points A (normal) enumerator is a version of a Turing machine M tha
4. 3 x 10 30 points A (normal) enumerator is a version of a Turing machine M that has an extra output tape or a printer attached, as the textbook formulates it Both tapes are comp…
4. A 2-stack PDA is similar to an ordinary PDA, but has two stacks. Thus, any tr
4. A 2-stack PDA is similar to an ordinary PDA, but has two stacks. Thus, any transition for a 2-stack PDA has the form (q,x,Z1,Z2) = (p,X1,X2), meaning that in state q, looking a…
4. A 2-stack PDA is similar to an ordinary PDA, but has two stacks. Thus, any tr
4. A 2-stack PDA is similar to an ordinary PDA, but has two stacks. Thus, any transition for a 2-stack PDA has the form (q,x,Z1,Z2) = (p,X1,X2), meaning that in state q, looking a…
4. A __________ activates a function. 5.______can be called several times from s
4. A __________ activates a function. 5.______can be called several times from several different places in a program. A. tester B. checkout C. driver D. initial E. concluding 2. W…
4. A binary search algorithm is written (as in the modules, for example) which s
4. A binary search algorithm is written (as in the modules, for example) which searches a pre-sorted array for some user-defined value, clientData. If clientData is stored in the …
4. A certain linear desktop PC r algorithm takes 2 seconds to process with an in
4. A certain linear desktop PC r algorithm takes 2 seconds to process with an input size of -1000 on an old a) How long would it take if n-2000? b) How long would it take for-2000…
4. A computer has two peripheral input/output devices VO, and /O2. Data transfer
4. A computer has two peripheral input/output devices VO, and /O2. Data transfer is organized via interrupt system. Device IO is served by interrupt service routine PROG1 and devi…
4. A linked list of integers is shown below a. What is the output for the follow
4. A linked list of integers is shown below a. What is the output for the following code in general? What should be added to the code to avoid a runtime error? Node p-firsti while…
4. A list of all amounts owed is needed. Create a list showing each criminal nam
4. A list of all amounts owed is needed. Create a list showing each criminal name, charge ID, total amount owed (fine amount plus court fee), amount paid, amount owed, and payment…
4. A padding oracle attack is an attack that exploits the padding of encrypted d
4. A padding oracle attack is an attack that exploits the padding of encrypted data in order to decrypt the message without having the key. 10 (a) Describe the basic mechanism by …
4. A palindrome is a string that can be read backward and forward with the same
4. A palindrome is a string that can be read backward and forward with the same result. For example, the following is a palindrome:                         Able was I ere I saw El…
4. A process can leave the \"Running\" state when a) It adds zero to the content
4. A process can leave the "Running" state when a) It adds zero to the contents of the general register R1 b) I/O Operation on which it was waiting completes c) Timer expires d) I…
4. A puzzle. The last thing you are going to do is get a little bit more practic
4. A puzzle. The last thing you are going to do is get a little bit more practice with working with flowcharts and writing VBA code. The code presented below is incomplete and the…
4. A real-time system has three periodic events with periods 40, 80 and 120 ms E
4. A real-time system has three periodic events with periods 40, 80 and 120 ms Explore and show the schedulability if each of the three kinds of events requires 15 ms of processin…
4. A refinery blends four petroleum components into three grades of gasoline reg
4. A refinery blends four petroleum components into three grades of gasoline regular, premium, and low-lead. The maximum quantities available of each component and the cost per ba…
4. A. Write a code for Vivado HLS to be able to synthesize a n-tap FIR filter (2
4. A. Write a code for Vivado HLS to be able to synthesize a n-tap FIR filter (20 points)? B. Apply any two optimizations for latency reduction using directives or adding pragmas …
4. ARP (Address Resolution Protocol) Consider the figure below. The IP and MAC a
4. ARP (Address Resolution Protocol) Consider the figure below. The IP and MAC addresses are shown for nodes A, B, C and D, as well as for the router's interfaces. 74-FB-E1-F2-32-…
4. Aaron Lakely is going to the grocery store to buy some bananas and apples, bo
4. Aaron Lakely is going to the grocery store to buy some bananas and apples, both of which are sold by the pound. He wants a program that calculates and displays the total cost o…
4. Add a subclass FillInQuestion to the question hierarchy of Section 10.1. Such
4.      Add a subclass FillInQuestion to the question hierarchy of Section 10.1. Such a question is constructed with a string that contains the answer, surrounded by _ _, for exam…
4. Add comments to the following MIPS code anddescribe in a sentence or two what
4. Add comments to the following MIPS code anddescribe in a sentence or two whatit computes. Assume that$a0 is used for the input and initiallycontains n, a positiveinteger. Assum…
4. After three years as a successful web design firm in Southern California, Dig
4. After three years as a successful web design firm in Southern California, Digital Dynamics has decided to add two new business ventures: a group that specializes in supplying q…
4. An employee is paid at a rate of $16.78 per hour for regular hours worked in
4. An employee is paid at a rate of $16.78 per hour for regular hours worked in a week. Any hours over that are paid at the overtime rate of one and one-half times that. From the …
4. An important component in ? today\'s globally-dispersed manufacturing is the
4. An important component in? today's globally-dispersed manufacturing is the use of? _________ information systems. enterprise/functional/transaction-processing/inter-enterprise/…
4. An x matrix that is filled wit tmbers 1,2,32 is a magic square if the sum of
4. An x matrix that is filled wit tmbers 1,2,32 is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a progr…
4. Analyze the following code: public class Test extends A { public static void
4. Analyze the following code: public class Test extends A { public static void main(Stringll args){ Test t- new Test0; t.printO; class A { String s; A(String s)i this.s-s; public…
4. Applications of Rec. Relations (10 points) Suppose we designed a robot that c
4. Applications of Rec. Relations (10 points) Suppose we designed a robot that can build copies of itself and that it takes the robots one hour to make a copy of themselves. Assum…
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the nu
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the number of length 2 bit strings that start and end (2) (0.5 points) Count the number of length 3 bit s…
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the nu
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the number of length 2 bit strings that start and end (2) (0.5 points) Count the number of length 3 bit s…
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the nu
4. Applications of Recurrence Relations (4 points) (1) (0.5 points) Count the number of length 2 bit strings that start and end (2) (0.5 points) Count the number of length 3 bit s…
4. Ask the user for a choice through a menu, to add or append, delete or modify
4. Ask the user for a choice through a menu, to add or append, delete or modify a record in the file. Do the following according to the user's choice: a. Add: i. accept the Employ…