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

2. You are to write a subroutine/function which will expect a string as input. T
2. You are to write a subroutine/function which will expect a string as input. The function shouid count the total number of words in the string calculated as the number of blocks…
2. You are to write a subroutine/function which will expect a string as inputThe
2. You are to write a subroutine/function which will expect a string as inputThe function should count the total number of words in the string calculated as the number of blocks o…
2. You have been given the header file and implementation file for very_long_int
2. You have been given the header file and implementation file for very_long_int. You have also been given an application file (main driver file). You are to do the following: Add…
2. You have been tasked with writing a program for the airline industry. They ha
2. You have been tasked with writing a program for the airline industry. They have over 15000 flights a day moving 1.2 million passengers. The average flight will have 92 passenge…
2. You have been tasked with writing a program for the airline industry. They ha
2. You have been tasked with writing a program for the airline industry. They have over 15000 flights a day moving 1.2 million passengers. The average flight will have 92 passenge…
2. You should use software for numerical calculations, such as tracking income a
2. You should use software for numerical calculations, such as tracking income and expenses. a. spreadsheet b. database c. document production d. utility 3. A software is a collec…
2. You work at the emergency room at a hospital. Patients come in and you evalua
2. You work at the emergency room at a hospital. Patients come in and you evaluate the severity of their injury by assigning a real number from 1 to 100. Whoever has the highest n…
2. You\'re standing at the base of a staircase and are heading to the top. A sma
2. You're standing at the base of a staircase and are heading to the top. A small stride will move up one stair, a large stride advances two. You want to count the number of ways …
2. You\'ve been asked to help fix a legacy database where there might be some is
2. You've been asked to help fix a legacy database where there might be some issues causing data integrity problems. For each table below identify the normal form of the data show…
2. [10 marks Give a context-free grammar that generates the language of properly
2. [10 marks Give a context-free grammar that generates the language of properly nested parentheses and braces. Le, for each open open parenthese/brace there is a closing one, and…
2. [10 marks] A problem with using expert systems to control robots is the Quali
2. [10 marks] A problem with using expert systems to control robots is the Qualification Problem – trying to predict all of the things in the environment that can prevent the robo…
2. [10 marks] You have a set of N coins in a bag, each having a value betweern 1
2. [10 marks] You have a set of N coins in a bag, each having a value betweern 1 and M, where M 2 N. Some coins may have the same value. You pick two coins (without replacement) a…
2. [10+10-20 points] (Shortest Cycles) Assume, we want to find a shortest direct
2. [10+10-20 points] (Shortest Cycles) Assume, we want to find a shortest directed cycle C in directed graph G- (V,E). To do this, we employ a BFS (breadth-first search) algo- rit…
2. [10p] Create a Thank you\" page that the user gets to after successfully subm
2. [10p] Create a Thank you" page that the user gets to after successfully submitting the information (Fig. 2) Thanks for Registration! Your format on First Name: Jokn Last Name: …
2. [12 marks This question asks you to use regular expressions For each of the f
2. [12 marks This question asks you to use regular expressions For each of the following questions, develop a single command line to perform the task required, and use script to r…
2. [12 marks] The binary method of exponentiation computes an for any positive i
2. [12 marks] The binary method of exponentiation computes an for any positive integer n using the fact that a"- (a/2)2 if n is even, and a"-a a-1 if n is odd (a) [6 marks] Give t…
2. [15 marks] Creating hypothetical smaller floating-point representations based
2. [15 marks] Creating hypothetical smaller floating-point representations based on the IEEE floating point format allows us to investigate this encoding scheme more easily, since…
2. [15 marks] Let\'s see what we can find by using some network tools a. [3 mark
2. [15 marks] Let's see what we can find by using some network tools a. [3 marks] Let's see what we can find using whois. Go to http:ping.eu select WHOIS and enter www.bestbuy.ca.…
2. [16 marks] Architecture Implementation A computer executes machine-language p
2. [16 marks] Architecture Implementation A computer executes machine-language programs consisting of machine instructions taken from that computer's ISA. However, to execute each…
2. [16] Data Warehousing, OLAP and Data Cube Computation (a) [8] The standard de
2. [16] Data Warehousing, OLAP and Data Cube Computation (a) [8] The standard deviation of n observations x1 , x2 , . . . , xn is dened as                 Where x¯ is the average …
2. [1pt] The lines show equipotential contours in the plane of three point charg
2. [1pt] The lines show equipotential contours in the plane of three point charges, Q1, Q2, and Q3. The positions of the charges are marked by dots. The values of the potentials a…
2. [2 pt] What are the four measures used to evaluate a search algorithm, please
2. [2 pt] What are the four measures used to evaluate a search algorithm, please explain the definition of each measure (1.0 pt)? Please fill in the following table for the listed…
2. [2+4]Consider the problem of finding the shortest path between two points on
2. [2+4]Consider the problem of finding the shortest path between two points on a plane that has convex polygonal obstacles as shown in Figure below. a) Suppose the state space co…
2. [20 pts] JavaScript, cookies. a) The web page that you are currently building
2. [20 pts] JavaScript, cookies. a) The web page that you are currently building uses a single cookie with name visitors which stores names of the people who visit the site. This …
2. [20pts] Assume your website uses a single cookie called images. The cookie st
2. [20pts] Assume your website uses a single cookie called images. The cookie string might look something like: This cookie stores the user preferences for the images to be displa…
2. [20pts] JS cookies and DOM Note: We will not bother with cookie expiration ti
2. [20pts] JS cookies and DOM Note: We will not bother with cookie expiration time in this question. a) Your website uses only one cookie called dates. This cookie contains dates …
2. [24 marks] 1) Compulsory misses occur the first time a program touches a cach
2. [24 marks] 1) Compulsory misses occur the first time a program touches a cache line. 2) Conflict misses occur when more than 'm' lines map to the same set in an m-way set-assoc…
2. [25 points] (a) [9 points] [5 points for correct answer 4 points for showing
2. [25 points] (a) [9 points] [5 points for correct answer 4 points for showing how you got that answer, convincingly and in detai/| Given the execution times of Programs 1, 2, 3,…
2. [3 points] Assume the size of data memory is 12 bytes. Also assume the memory
2. [3 points] Assume the size of data memory is 12 bytes. Also assume the memory is addressed by byte and all bytes are initially set to (00 hex. Determine the content of the memo…
2. [3 points] What is the largest double value that can be represented? Explain
2. [3 points] What is the largest double value that can be represented? Explain your reasoning! You are welcome to leave your answer as an expression (i.e., equation). 2. [3 point…
2. [4 points] Discuss the pros and cons of shared vs. private L2 caches for both
2. [4 points] Discuss the pros and cons of shared vs. private L2 caches for both single-threaded, multi-threaded, and multiprogrammed workloads, and reconsider them if having on-c…
2. [40pts] In this part of the assignment you practice how to write assembly cod
2. [40pts] In this part of the assignment you practice how to write assembly code and use the ARM sim# to test run your code. ARM Sim# is available for download for Windows and MA…
2. [4pt] Match the type of distance measurement with the objects whose distance
2. [4pt] Match the type of distance measurement with the objects whose distance can be measured using it (If the first corresponds to B, and the next 5 to C, enter BCCCCC): 1) nea…
2. [50 points] After your Part 1 testing is complete, implement the other two fu
2. [50 points] After your Part 1 testing is complete, implement the other two functions: o void printTable(double *values, int n, int perRow) - print the values as a neatly-format…
2. [6 marks] Half-Precision Floating-Point Suppose there was a floating-point co
2. [6 marks] Half-Precision Floating-Point Suppose there was a floating-point code that fit in 16 bits, with 1 bit for the sign, 6 bits for the exponent and 9 bits for the signifi…
2. [60] In this exercise we examine the detail how an instruction is executed in
2. [60] In this exercise we examine the detail how an instruction is executed in a single-cycle MIPS datapath (the processor diagram is shown in Figure 4.24) Problems in this exer…
2. [Instruction Set Architecture/Addressing Mode] We want to update the value of
2. [Instruction Set Architecture/Addressing Mode] We want to update the value of register St0 to "OxFF". Fill in the blanks to demonstrate the use of Immediate, Register, and Inde…
2. [Intra-Domain Routing] (12 marks) a) (6 marks) So far in this lecture series,
2. [Intra-Domain Routing] (12 marks) a) (6 marks) So far in this lecture series, for intra domain routing scenarios, we have assumed that the shortest path is the least cost path …
2. [Intra-Domain Routing] In the inter domain routing scenarios, we have assumed
2. [Intra-Domain Routing] In the inter domain routing scenarios, we have assumed that the shortest path is the least cost path where cost may be defined in terms of number of hops…
2. [Programming] [30 points] Write a function double parallel (double ri, double
2. [Programming] [30 points] Write a function double parallel (double ri, double r2 ) to compute the resistance of two parallel resistors r and r. Note that it is equal to Write a…
2. [Programming] [40 points] Write a program that simulates the rolling of three
2. [Programming] [40 points] Write a program that simulates the rolling of three dice. The program should use rand three times to roll the first die, second die and third die, res…
2. [programming question] (80 pts) A university computer science department has
2. [programming question] (80 pts) A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments durin…
2. [programming question] (90 pts) A Sudoku puzzle uses a 9 x 9 grid in which ea
2. [programming question] (90 pts) A Sudoku puzzle uses a 9 x 9 grid in which each column and row, as well as each of the nine 3 x 3 subgrids (separated by darker vertical and hor…
2. a) (10 points) What C code line most likely created this assembly code? Assum
2. a) (10 points) What C code line most likely created this assembly code? Assume A, B, C and D variables in assembly arex, y, z and w in C, respectively. b) (5 points) What is th…
2. a) (10 points) What C code line most likely created this assembly code? Assum
2. a) (10 points) What C code line most likely created this assembly code? Assume A, B, C and D variables in assembly are x, y, z and w in C, respectively b) (5 points) What is th…
2. a) Can you have more than one virtual computer (machine) on one physical comp
2. a) Can you have more than one virtual computer (machine) on one physical computer (machine) ? Select one: a. Yes, it is possible. b. No, you would not want to do that. c. No, w…
2. a. Write MIPS code to perform addition of two unsigned numbers in registers S
2. a. Write MIPS code to perform addition of two unsigned numbers in registers St1 and St2 and then verify whether the result has overflowed the 32-bit long destination register S…
2. breadth first search (worth 30 points) Implement function breadth_first follo
2. breadth first search (worth 30 points) Implement function breadth_first following this pseudo code. Don't forget to import math to allow use of math.inf def breadth first (grap…
2. identify unique word-pairs and calculate their frequencies. bool wordpairMapp
2. identify unique word-pairs and calculate their frequencies. bool wordpairMapping ( vector&sentences;, map &wordpairFreq; map) Given a list of sentences stored in the fi…
2. indicate whether a queue would be a suitable data structure to use in each of
2. indicate whether a queue would be a suitable data structure to use in each of the following applications. a. an ailing company wants to evaluate employee records so that it can…