Web development and programming
191828 questions • Page 183 / 3837
1. (2 points each) Create the following objects as described below. Use any name
1. (2 points each) Create the following objects as described below. Use any name a. Create an object of type Homework, named homework1, using a constructor that does not take in a…
1. (2 points) 1 void foo0 nt x = 5; 4 int main0 foo0 return 0; If you are runnin
1. (2 points) 1 void foo0 nt x = 5; 4 int main0 foo0 return 0; If you are running gdb on the executable of the above code, what are the two gdb commands that you need to insert in…
1. (2 points) Declare a two-dimensional integer array of size 10 by 5 (10 rows a
1. (2 points) Declare a two-dimensional integer array of size 10 by 5 (10 rows and 5columns) named Table. 2. (8 points)Using the rand( ) function initialize the elements of Table …
1. (2 pts) Consider classfull addressing and find the network ID and host ID for
1. (2 pts) Consider classfull addressing and find the network ID and host ID for the following IP addresses: 75.0.0.13 100.2.4.1 220·102.229·10 224.3.2.1 2. (2 pts) Consider class…
1. (2 pts) Perform a multiplication of two binary numbers(multiplicand 0101 and
1. (2 pts) Perform a multiplication of two binary numbers(multiplicand 0101 and multiplier 0101) by creating a table to showsteps taken, multiplicand register value, multiplier re…
1. (2) When using a singly linked list to implement a queue, the should be the f
1. (2) When using a singly linked list to implement a queue, the should be the front of the queue a. b. c. d. head node tail node neither the head node nor the tail node either he…
1. (2) main() is a function. a. true b. false c. it depends on how you define it
1. (2) main() is a function. a. true b. false c. it depends on how you define it 2. (2) A function knows _______ about the calling code. a. something b. nothing c. everything 3. (…
1. (20 POINTS) We w call a sequencebi,...h barely changing if neighboring number
1. (20 POINTS) We w call a sequencebi,...h barely changing if neighboring numbers differ by at most 73 (that is, Wie 1, ,m-bbl S 73). Consider the following problem: INPUT: A sequ…
1. (20 oints) Create a user-defined function called farZcel that converts temper
1. (20 oints) Create a user-defined function called farZcel that converts temperature of petroleum fluid in Fahrenheit (F) to Celslus (C) using the formula TIC) (TIF)-32/9. The fu…
1. (20 points) (a) (5 points) logn - O(g(n)) for which of the following definiti
1. (20 points) (a) (5 points) logn - O(g(n)) for which of the following definitions of g(n)? Circle all that apply: ·g(n) = 1 ·g(n) log n + 247 o g(n)nlogn ·g(n) = log n » None of…
1. (20 points) (a) Fill in the contents of the hash table below after inserting
1. (20 points) (a) Fill in the contents of the hash table below after inserting the items shown. To insert the item k, use the hash function k mod TableSize and resolve collisions…
1. (20 points) Answer whether the following statements are True or False. (a) (2
1. (20 points) Answer whether the following statements are True or False. (a) (2 point) Parameters of a multivariate linear regression problem can be expressed as a closed form eq…
1. (20 points) Create a new project named hw4_lastname and create a class named
1. (20 points) Create a new project named hw4_lastname and create a class named Rectangle that represents a rectangle (1) Your member variables will be height and width. (2) Your …
1. (20 points) Create a user-defined function called far2cel that converts tempe
1. (20 points) Create a user-defined function called far2cel that converts temperature of petroleum fluid in Fahrenheit (F) to Celsius (C) using the formula T(C) = 5*[T(F)-321/9. …
1. (20 points) Dynamic Programming. Consider a map of the Brazilian rainforest w
1. (20 points) Dynamic Programming. Consider a map of the Brazilian rainforest with the Amazon River passing horizontally through the center. Along the southern bank of the river …
1. (20 points) List and give an example of the three types of binary relationshi
1. (20 points) List and give an example of the three types of binary relationships other than the ones used in this book. Draw both a traditional E-R diagram and an IE Crow’s Foot…
1. (20 points) What types of error is each of the following? *Forgot to add a ;
1. (20 points) What types of error is each of the following? *Forgot to add a ; when declaring a variable *When computing the area of a circle, you used the formula: area = 2 * PI…
1. (20 points) Write a C program that sorts the lincs in a text file (considerin
1. (20 points) Write a C program that sorts the lincs in a text file (considering cach linc as a string) using the library function gsort. So for cxample if the file contains line…
1. (20 points) Write a profile file (for a bash shell) so that it sets the follo
1. (20 points) Write a profile file (for a bash shell) so that it sets the following environment: Adds the aliases md for mkdir and rd for rmdir Adds an alias where a user can log…
1. (20 points) a.) What kind of C language statement is the following? float com
1. (20 points) a.) What kind of C language statement is the following? float computeDegreesF (float degreesc) b.) In the above line of code, what does the first occurrence of floa…
1. (20 points)Write a program named Lab1.java that reads the java file you creat
1. (20 points)Write a program named Lab1.java that reads the java file you created for this lab (i.e. Lab1.java) and writes a copy of the file to another file with line numbers in…
1. (20 pts) Assume that a machine includes a floating point (FP) unit, which con
1. (20 pts) Assume that a machine includes a floating point (FP) unit, which contains an FP square root (F PSQR) instruction. Suppose we have the following measurements. Frequency…
1. (20 pts) Consider the following code example for allocating and releasing pro
1. (20 pts) Consider the following code example for allocating and releasing processes(i.e., tracking number of #define MAX PROCS 255 nt numberofprocesses = 0; - - / the implement…
1. (20 pts) Consider the following set of processes, with the length of the CPU
1. (20 pts) Consider the following set of processes, with the length of the CPU burst time given in milliseconds: Process P1 P2 P3 P4 PS Burst Time Pririty 3 4 4 The processes are…
1. (20 pts) For the following program, explain the interesting elements related
1. (20 pts) For the following program, explain the interesting elements related to threads. 1 public class TaskThreadDemo { 2 public static void main (String args []) { 3 St…
1. (20 pts) For the following program, explain the interesting elements related
1. (20 pts) For the following program, explain the interesting elements related to threads. 1 public class TaskThreadDemo { 2 public static void main (String args []) { 3 St…
1. (20 pts) For the following program, explain the interesting elements related
1. (20 pts) For the following program, explain the interesting elements related to threads. 1 public class TaskThreadDemo { 2 public static void main (String args []) { 3 St…
1. (20 pts) For the following program, explain the interesting elements related
1. (20 pts) For the following program, explain the interesting elements related to threads. 1 public class TaskThreadDemo { 2 public static void main (String args []) { 3 St…
1. (20 pts) For the following program, explain the interesting elements related
1. (20 pts) For the following program, explain the interesting elements related to threads. You may experiment with the program using the attached source code: TaskThreadDemo sour…
1. (20 pts) Given the following BANKING database, formulate a Relational Algebra
1. (20 pts) Given the following BANKING database, formulate a Relational Algebra expression for each of the following questions. SELECT should be performed before any JOIN operati…
1. (20pts) A single-precision floating point number uses 32 bits of storage: 1 b
1. (20pts) A single-precision floating point number uses 32 bits of storage: 1 bit for the sign, 8 bits for the exponent, and 23 bits for the mantissa. The largest number that can…
1. (20pts) Answer T or F for each of the following questions. (a) Let S = {1, {1
1. (20pts) Answer T or F for each of the following questions. (a) Let S = {1, {1}, {{1}}, {{{1}}}, ...}. It follows that S 2 S = . T F (b) p(p¬q)(¬p¬q¬r) is an expression in conju…
1. (21 points) a) (3 points) Consider an 8-bit binary system. Give the 8-bit bin
1. (21 points) a) (3 points) Consider an 8-bit binary system. Give the 8-bit binary representation for the complement of the following numbers. i) 0110 0101 ii) 1010 0001 ii 1110 …
1. (22 points) (a) Let E = a0\" + b0 be a regular expression over = {a, b, 0.1).
1. (22 points) (a) Let E = a0" + b0 be a regular expression over = {a, b, 0.1). Which of the following is a string in L(E): (circle all that are correct) (a) a0* (b) e (c) aa00 (d…
1. (22 pts) Circle the selected answer for T/F and multiple-choice questions; an
1. (22 pts) Circle the selected answer for T/F and multiple-choice questions; and fill in the blanks for the rest. Each part is 2 points. a) T / F A processor can have different C…
1. (25) Answer the following briefly but completely. a. Who is this man and why
1. (25) Answer the following briefly but completely. a. Who is this man and why is he important to computer science? Hint Computerphone/Brailsford video. b. Now that you have prov…
1. (3 pts) Five charged particles enter a magnetic field (into the page) as show
1. (3 pts) Five charged particles enter a magnetic field (into the page) as shown. All have the same speed and mass. Explain your answer for each of the parts below. a) Which one(…
1. (30 points) Consider the following code segment. 1 include \"msp430.h\" Edefi
1. (30 points) Consider the following code segment. 1 include "msp430.h" Edefine controlled include file NAME main module name PUBLIC main make the main label visible outside this…
1. (30 points) Create a Google Maps program to visualize a data set stored in a
1. (30 points) Create a Google Maps program to visualize a data set stored in a Google Fusion Table. a. Implement your program in Google Maps JavaScript API. b. Each row of the Fu…
1. (30 points) Grading system 90 and above, display \"A\" 80 to 89, display \"B\
1. (30 points) Grading system 90 and above, display "A" 80 to 89, display "B" 70 to 79, display "C 60 to 69, display "D" 59 and below, display , 2. (30 points) Write a program usi…
1. (30 points) Note: This program will be graded based on whether the required f
1. (30 points) Note: This program will be graded based on whether the required functionality were implemented correctly instead of whether it produces the correct output, for the …
1. (30 points) Note: This program will be graded based on whether the required f
1. (30 points) Note: This program will be graded based on whether the required functionality were implemented correctly instead of whether it produces the correct output, for the …
1. (30 points) Suppose an IEEE 802.11a Wi-Fi network operates under the DCF mode
1. (30 points) Suppose an IEEE 802.11a Wi-Fi network operates under the DCF mode. Suppose it has the following parameters : aSIFSTime-16s, aSlotTime = 9us, cwmins 15, and CWmax-10…
1. (30 pts) Professor Snape has n magical widgets that are supposedly both ident
1. (30 pts) Professor Snape has n magical widgets that are supposedly both identical and capable of testing each other's correctness. Snape's test apparatus can hold two widgets a…
1. (30) Write a Java application named Hwl_1.java that reads your full name and
1. (30) Write a Java application named Hwl_1.java that reads your full name and your major, and prints out the following message: (user full name) is a (user major) major Here is …
1. (30pts) Build a truth table to determine whether the following proposition is
1. (30pts) Build a truth table to determine whether the following proposition is a tautology, contradiction or contingency: (pq)(¬pq) 2. (30pts) A compound proposition is satisfia…
1. (31 points) Regarding classic ciphers: (a) (5 points) Show that the shift cip
1. (31 points) Regarding classic ciphers: (a) (5 points) Show that the shift cipher is trvial to break using any of the three attacks: known-plaintext attack, chosen-plaintext att…
1. (32 points) Please answer the following questions by circling the correspondi
1. (32 points) Please answer the following questions by circling the corresponding letter TTuE or F(False). (a) A tuple variable is not bound if it is quantified. TF T F (c) not(V…
1. (35 points) Visit at least three (3) e-commerce sites and evaluate the effect
1. (35 points) Visit at least three (3) e-commerce sites and evaluate the effectiveness of the sites according to the eight basic criteria/ functionalities listed in Table 4.11. C…
1. (35 points) Write SQLs to create three tables based on given relational schem
1. (35 points) Write SQLs to create three tables based on given relational schemas and directions below AIRPORT FLIGHTLEG FLIGHT PK AirportCodeCHAR(3) PK lichtNo NUMBER NUMBER NUM…
Subject
Web development and programming
Use Browse or pick another subject.