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 324 / 3837

2. (5 points) C++ Implement doubly linked list data structure that stores a list
2. (5 points) C++ Implement doubly linked list data structure that stores a list of integers. class Node{ int data; Node *next; Node *prev; public: Node() { data = 0; next = 0; pr…
2. (5 points) Use a loop instruction with indirect addressing to reverse the ele
2. (5 points) Use a loop instruction with indirect addressing to reverse the elements of an array in place. - Do not copy the elements to any other array. Use the SIZEOF, TYPE, an…
2. (5 pts) Assume two tables T3 and T4 have been created as follows. Table T4 ke
2. (5 pts) Assume two tables T3 and T4 have been created as follows. Table T4 keeps track of the number of times (c) that a certain string (s) appears in table T3 create table T3 …
2. (50 POINTS) Install and run Icarus Verilog (iverilog simulator together with
2. (50 POINTS) Install and run Icarus Verilog (iverilog simulator together with gtkwave output viewer on your computer. You may find and freely install this tool online. A collect…
2. (50 points) (SQL. Queries) r the following relational database schema that re
2. (50 points) (SQL. Queries) r the following relational database schema that records information about student registrations. The primary key for each relation is underlined. Stu…
2. (55%) P and NP (2000) Give the definition of PNP, NP-hard, and NP-completenes
2. (55%) P and NP (2000) Give the definition of PNP, NP-hard, and NP-completeness (5%) is the Euler path problem in NP? No explanation required. (5%) Is the Hamiltonian path probl…
2. (5pts) Below it is discussed how to simplify 1 kxk (x 1) with change of index
2. (5pts) Below it is discussed how to simplify 1 kxk (x 1) with change of index. Fill in the five blanks with the shortest possible expressions to complete the sentences. Allowed…
2. (6 marks) Search and Information Retrieval (a) (2 marks) A search engine retu
2. (6 marks) Search and Information Retrieval (a) (2 marks) A search engine returns 500 search results. There are 300 relevant documents in total, but only 200 of these have been …
2. (6 points) In the following code, three processes are synchronized using two
2. (6 points) In the following code, three processes are synchronized using two semaphores L and R and produce output using the routine putc semaphore L.value = 3, R.value = 0; /*…
2. (6 points) Matrix Problem Generate a matrix of random integer temperatures in
2. (6 points) Matrix Problem Generate a matrix of random integer temperatures in Fahrenheit from 70 to 100 for 10 weeks (rows) and 7 days per week (columns). The result should loo…
2. (60 points) Write the following script for bash Submit a shell script version
2. (60 points) Write the following script for bash Submit a shell script version of the HI-LO game that uses text data. Call this script “hilo". The game should be designed for tw…
2. (60 points) puzzle.cxx A children\'s puzzle that was popular 30 years ago con
2. (60 points) puzzle.cxx A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contains 24 small squares of equal size. A unique letter of the alphabet…
2. (60) Write a program that will use the following function prototypes: int rea
2. (60) Write a program that will use the following function prototypes: int readAbsoluteData(double data[D; Ilask user for number of points, read in points and store the absolute…
2. (7 points) A. (5 points) Write an assembly program to calculate the factorial
2. (7 points) A. (5 points) Write an assembly program to calculate the factorial of an unsigned integer n (n!) You need to prompt the user to enter an unsigned integer: Enter unsi…
2. (70 points) A C program can represent a real polynomial p(x) of degree n as a
2. (70 points) A C program can represent a real polynomial p(x) of degree n as an array of the real coefficients a0 a1, …, an. p(x) = a0 + a1x + a2x2 …, an xn Write a C program th…
2. (70) The local medical clinic has decided to automate its scheduling services
2. (70) The local medical clinic has decided to automate its scheduling services. You have been assigned to design the initial version of the schedules. The basic functions that t…
2. (8 points) Complete th s to check whether its first argument, a 2-dimensional
2. (8 points) Complete th s to check whether its first argument, a 2-dimensional ntains enough e code for the following findSeats function that returns an integer array of numbers…
2. (8 pts) Comment eadc assembly instruction; rather explain what it is omment e
2. (8 pts) Comment eadc assembly instruction; rather explain what it is omment each line of assembly code· Do not just explain the doing. Example: mov eax,0 BAD> moving a zero …
2. (Adapted from Exercise 2.2-2 in the textbook) Below is pseudocode for selecti
2. (Adapted from Exercise 2.2-2 in the textbook) Below is pseudocode for selection sort, which works by finding the minimum element of A, and storing it in A[1], then finding the …
2. (Arrays of Pointers to Functions) You will modify the above program #1- “Stud
2. (Arrays of Pointers to Functions) You will modify the above program #1- “Student Grade Calculation Program” as follows: 1. You will use arrays of pointers to functions to creat…
2. (Fibonacci Series) (50 points) Modify a program generating a Fibonacci series
2. (Fibonacci Series) (50 points) Modify a program generating a Fibonacci series (Program 3 from the Homeworkl) in the following way. The Fibonacci series shall be generated in th…
2. (LO 4) Assume that the individual stages of the MIPs pipelined datapath have
2. (LO 4) Assume that the individual stages of the MIPs pipelined datapath have the following latencies (Tis): IF latency 300 ps, ID 150 ps, Ex latency m 200ps, MEM latency latenc…
2. (Merge two sorted lists) Write the following method that merges two sorted li
2. (Merge two sorted lists) Write the following method that merges two sorted lists into a new sorted list. void merge (const int listi], int sizel, const int list2, int size2, in…
2. (Problem 8-7 in the Tertbook.) In the United States, coins have denominations
2. (Problem 8-7 in the Tertbook.) In the United States, coins have denominations 1, 5, 10, 25, and 50 cents. Now, consider a country whose coins have denominations di, da, ..., dk…
2. (Recursion and Recurrence Relations) (a) (10 pts) Write a recursive function
2. (Recursion and Recurrence Relations) (a) (10 pts) Write a recursive function that takes a string of length n and rctums I if the string is a palindrome, 0 if the string is not …
2. (Save your program as a write answer as a program to: the a Prompt user for t
2. (Save your program as a write answer as a program to: the a Prompt user for two positive integers, divide the larger by the smaller, and print the quotient and remainder. b. Us…
2. (Sorted list: array implementation) This sorted list ADT discussed in class s
2. (Sorted list: array implementation) This sorted list ADT discussed in class should be extended by the addition of two new methods: //Interface: ArrayListADT //works for int pub…
2. (Stable Matching Problem with Indifferences) In this problem, we will conside
2. (Stable Matching Problem with Indifferences) In this problem, we will consider a situation in which men and women can be indifferent between two choices. Suppose we allow men a…
2. (TCO 1) What is stored in alpha after the following code executes? int alpha[
2. (TCO 1) What is stored in alpha after the following code executes? int alpha[5] = {0}; int j; for (j = 0; j < 5; j++) { alpha[j] = j + 5; if ( j % 2 == 1) //see if j is an e…
2. (TCO 2) Keeping in mind all object-oriented programming best practices, creat
2. (TCO 2) Keeping in mind all object-oriented programming best practices, create a class for a Chair, with the following specifications: 1. Specify two data members 2. Default Co…
2. (TCO 3) What constraint can only be applied at table level or with an ALTER s
2. (TCO 3) What constraint can only be applied at table level or with an ALTER statement? (Points : 4)        Foreign key        Not null        Single field primary key        Co…
2. (TCO 3, 4, and 5) Consider the network shown below: (Circles represent end st
2. (TCO 3, 4, and 5) Consider the network shown below: (Circles represent end stations, rectangles represent network devices) Answer the following questions with reference to this…
2. (TCO 5) Bandwidth and _____ are examples of items used to calculate metrics.
2. (TCO 5) Bandwidth and _____ are examples of items used to calculate metrics. (Points : 6)        convergence time        delay        uptime        None of the above Question 3…
2. (TCO 6) Which is not included in the process description tools? (Points : 4)
2. (TCO 6) Which is not included in the process description tools? (Points : 4)        Decision tables        Structured English        Context diagrams        Decision trees Ques…
2. (TCO 7) Given the following string variables, write a statement that would st
2. (TCO 7) Given the following string variables, write a statement that would store the concatenation of str1 and str2 into str3. string str1 = "Here is an "; string str2 = "examp…
2. (TCO 7) Which of the following statements is correct? (Points : 3) WHERE oper
2. (TCO 7) Which of the following statements is correct? (Points : 3)        WHERE operates on groups formed by aggregate functions and HAVING operates on individual rows.        …
2. (TCO 7) Write a function called writeData. This function is passed a string a
2.(TCO 7) Write a function called writeData. This function is passed a string array, integer array, double array, and the size of the arrays. The arrays to be passed to the writeD…
2. (TCO3) An analog signal with a frequency of 5 kHz is sampled using a sampling
2. (TCO3) An analog signal with a frequency of 5 kHz is sampled using a sampling rate of 8 kHz. Which one of the following is true? (Points : 3) Sampling condition is violated and…
2. (TOTAL: 10 points) Show SQL data definition statements (create table) for the
2. (TOTAL: 10 points) Show SQL data definition statements (create table) for the following t relations: STUDENT (SSN,firstName, lastName, age) COURSE (course ID, course_name, SSN,…
2. (The Person, Student, Employee, Faculty, and Staff classes) Design a class na
2. (The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two derived classes named Student and Employee. Make Faculty and Staff derived c…
2. (This is redoing of your previous homework problems. This time do this proble
2. (This is redoing of your previous homework problems. This time do this problem by using user defined functions. Please create 3 script with 1) A User defined function that does…
2. (Total 30 points) Consider the counter with parallel-load capability in Fig.
2. (Total 30 points) Consider the counter with parallel-load capability in Fig. 5.24 in textbook. For the D flip-flops, assume that the setup time tsi, is 4 ns, the hold time th i…
2. (Worth: 2 points. Page limit: 1 sheet; 2 sides) The manager at a local toy st
2. (Worth: 2 points. Page limit: 1 sheet; 2 sides) The manager at a local toy store, Algos-R-Us, is in need of some algorithmic expertise. A few days back he received a shipment o…
2. (a) A pointer start points to the first element of a doubly-linked list of in
2. (a) A pointer start points to the first element of a doubly-linked list of integers, L Write an algorithm that inserts a new integer x after the last occurrence of an integer k…
2. (a) If an OS is “backwards compatible”, does this mean compatible with old ha
2. (a) If an OS is “backwards compatible”, does this mean compatible with old hardware,        old device controllers, or something else (what?)    (b) Is backwards compatibility …
2. (a) Prepare an argument for or against the proposition that the following is
2. (a) Prepare an argument for or against the proposition that the following is ethical behavior. Without telling anyone, your ISP starts tracking every HTTP exchange from all its…
2. (a) Write a function that calculates the geometric mean of a vector x = (x1,
2. (a) Write a function that calculates the geometric mean of a vector x =     (x1, . . . , xn) and returns an error message if any element of x is negative. (b) Apply your functi…
2. 100% For this question, check all that apply. MIPS is not a CISC architecture
2. 100% For this question, check all that apply. MIPS is not a CISC architecture, but a RISC with a simple and highly regular instruction set. Which of the following attributes co…
2. 11 pts total Microcontrollers with the Harvard architecture usually offer spe
2. 11 pts total Microcontrollers with the Harvard architecture usually offer speed advantages over those categorized as von Neumann. One disadvantage, though, is that data in the …
2. 3. 4. 5. 6. 7. 8. 9. File System Reads and Writes Suppose we have a directory
2. 3. 4. 5. 6. 7. 8. 9. File System Reads and Writes Suppose we have a directory structure as follows: Suppose the contents of the root directory and its inode, and the contents o…