Web development and programming
191828 questions • Page 184 / 3837
1. (35 pts) Rewrite the following program using macro definitions (tdefine) for
1. (35 pts) Rewrite the following program using macro definitions (tdefine) for all the constants and a new type definition (typedef) called Card for all the values representing t…
1. (38 points) Create a directory named \"problem-1\". In that directory, write
1. (38 points) Create a directory named "problem-1". In that directory, write a program that reads in, sorts, and outputs an array of structures (8 points) Declare the struct in i…
1. (4 marks) Consider the Polynomial and the generic ArayBag classes outlined to
1. (4 marks) Consider the Polynomial and the generic ArayBag classes outlined to the right. Show the statements required to complete the following publie elass Aecaybag Objeot] da…
1. (4 points) For any small Javascript task, give the syntax for doing it normal
1. (4 points) For any small Javascript task, give the syntax for doing it normally and then give an example of how jQuery makes that task easier to code. (Can just be one or two l…
1. (4 points) Understand and correct MATLAB conditions. For these problems you d
1. (4 points) Understand and correct MATLAB conditions. For these problems you do not need to write entire matlab functions or scripts, just the condition statements requested. la…
1. (4 points) You are one of P recently arrested prisoners. The warden, a derang
1. (4 points) You are one of P recently arrested prisoners. The warden, a deranged computer engineer, makes the following announcement: . You may meet together today and plan a st…
1. (4 pts – 2 pts for return type, 2 pts for input parameter) Provide the protot
1. (4 pts – 2 pts for return type, 2 pts for input parameter) Provide the prototype/declaration for a function called: compute_current_ohms_law()that accepts two double precision …
1. (4 pts – 2 pts for return type, 2 pts for input parameter) Provide the protot
1. (4 pts – 2 pts for return type, 2 pts for input parameter) Provide the prototype/declaration for a function called: compute_current_ohms_law()that accepts two double precision …
1. (4 pts.) The following algorithm is designed to determine a grade for a cours
1. (4 pts.) The following algorithm is designed to determine a grade for a course that consists of quizzes, homework, and a final exam: Step 1: Input course number and name Step 2…
1. (4) properly identify the following IPv4 addresses. a. 202.117.132.176/28 b.
1. (4) properly identify the following IPv4 addresses. a. 202.117.132.176/28 b. 192.168.32.149/16 c. 153.258.33.129/26 d. 86.135.21.75/26 e. 127.0.0.1/8 f. 212.89.126.159/27 g. 0.…
1. (40 points) You are given the following function containing a delay loop: Ten
1. (40 points) You are given the following function containing a delay loop: Ten 1 decfsz COUNTL, FInner loop goto Ten 1 fsz COUNTH, F outer 1oop Ten 1 goto return a. (20 points) …
1. (40 pts) Write a JS program called \"assignment_2.js\". In this script create
1. (40 pts) Write a JS program called "assignment_2.js". In this script create the following functions: a. A function called larger that returns the larger of its two arguments. F…
1. (4pt) Review Questions a. (2pt)Implement char *CopyString (char *s); that cop
1. (4pt) Review Questions a. (2pt)Implement char *CopyString (char *s); that copiesthe strings into a dynamically allocated storage and returns the address of the new string. Supp…
1. (5 marks) There is much current research in producing autonomous vehicles tha
1. (5 marks) There is much current research in producing autonomous vehicles that can be used on real roads. For each of the following capabilities that such a system should exhib…
1. (5 points) For each of the statements below, indicate whether they are true o
1. (5 points) For each of the statements below, indicate whether they are true or false by writing “T” or “F” on the provided line. Read the questions very carefully. (a) Each Jav…
1. (5 points) Please write the following numbers: 1) Decimal number 120 as a siz
1. (5 points) Please write the following numbers: 1) Decimal number 120 as a sized 8-bit number in binary. Use_for readability. 2) A 16-bit hexadecimal unknown number with all x's…
1. (5 points) Which if the following is/are true? Artificial Intelligence is the
1. (5 points) Which if the following is/are true? Artificial Intelligence is the: a) Branch b) The of Computer science which aims to make intelligent machines. science and enginee…
1. (5 pts) Draw a picture illustrating how Python executes the script module. St
1. (5 pts) Draw a picture illustrating how Python executes the script module. Standard pictures show each name above a square box that contains the tail of an arrow, whose head po…
1. (5 pts+2 bonus pts) Assume two tables T1 and T2 have been created as follows.
1. (5 pts+2 bonus pts) Assume two tables T1 and T2 have been created as follows. create table T1 x number, y number create table T2 x number, y number Write a procedure ProcProble…
1. (5) Let A-lg,r,s,t and B- 17, 18, 19,20. Determine which of the following are
1. (5) Let A-lg,r,s,t and B- 17, 18, 19,20. Determine which of the following are functions. Explain why or why not. a. f Ax B, wheref= {(9,17), (r, 18). (s,19),(s.20)) b. gSAx B,w…
1. (50 marks) Using C++, write a pro gram to calculate the area and perimeter of
1. (50 marks) Using C++, write a pro gram to calculate the area and perimeter of four simple plane figures: a rectangle, a circle, a square and a triangle. 1 of 3 The program shou…
1. (50 points) The following instructions are executed on the 5-stage MIPS pipel
1. (50 points) The following instructions are executed on the 5-stage MIPS pipelined datapath add r5,r2, r1 lw r3, 4(r5) lw r2, 0(r2) or r3, r5, r: sw r3, 0(r5) (a) (20 points) Li…
1. (50 pt., 10 pt. each) Prove each of the following statements using a direct p
1. (50 pt., 10 pt. each) Prove each of the following statements using a direct proof, a proof by contrapositive, a proof by contradiction, or a proof by cases. Indicate which proo…
1. (50%) – Project Management Plan and the Work Breakdown Structure Part a – PMP
1. (50%) – Project Management Plan and the Work Breakdown Structure Part a – PMP Content Describe a hypothetical project scenario of your choice and then list and defend which man…
1. (5x2 pts) In what mode do we start TCP? Slow Start a. Congestion Avoidance Fa
1. (5x2 pts) In what mode do we start TCP? Slow Start a. Congestion Avoidance Fast Recovery b. In which mode of window growth do we grow the window size exponentially? Slow Start …
1. (5x2 pts) In what mode do we start TCP? Slow Start a. Congestion Avoidance Fa
1. (5x2 pts) In what mode do we start TCP? Slow Start a. Congestion Avoidance Fast Recovery b. In which mode of window growth do we grow the window size exponentially? Slow Start …
1. (6 points) Which of the following is a legal way to declare and create an arr
1. (6 points) Which of the following is a legal way to declare and create an array of 10 String objects? a. String s = new String(10); b. String[10] s = new String; c. String[ ] s…
1. (6 points) Which of the following is a legal way to declare and create an arr
1. (6 points) Which of the following is a legal way to declare and create an array of 10 String objects? a. String s = new String(10); b. String[10] s = new String; c. String[ ] s…
1. (6 pts) Suppose you are counting ballots in an election for Supreme (Yet Some
1. (6 pts) Suppose you are counting ballots in an election for Supreme (Yet Somehow Democratically Elected) Ruler of the Universe. Assume you have 1,000 candidates in all, each of…
1. (6 pts) What are three operation modes of HC12 microcontrollers? And for each
1. (6 pts) What are three operation modes of HC12 microcontrollers? And for each mode, specify the sizes of external address and data buses What kind of circuit do you need in ord…
1. (6 pts) Write a function called find min) that accepts an array of integers a
1. (6 pts) Write a function called find min) that accepts an array of integers and the number of items in the array as parameters, and returns the smallest number in the array. 2.…
1. (60 points) Evaluate the following expressions. Assume: x is 10.5, y is 7.2,
1. (60 points) Evaluate the following expressions. Assume: x is 10.5, y is 7.2, m is 5, n is 2 Hint: You can use printf to verify your answers. But you must know which format cont…
1. (60 points) Write a program that modifies a word by replacing every alphabeti
1. (60 points) Write a program that modifies a word by replacing every alphabetical letter (lower case or upper case) with a digit (2-9). The numbers 2 through 9 each have three l…
1. (60 points) Write a program to extract Web addresses starting with www. and e
1. (60 points) Write a program to extract Web addresses starting with www. and ending with .edu. The program displays Web address contained in the input entered by the user. If th…
1. (60pts) Write a program that takes two sets A and B with maximal size being 1
1. (60pts) Write a program that takes two sets A and B with maximal size being 10 as input. Use alphabetic letters as set elements. For example, A={a, b, c, d, e, f, g, h, j, k}. …
1. (7 pts) Write a function called recursive_string_length () that accepts a poi
1. (7 pts) Write a function called recursive_string_length () that accepts a pointer to a string as a parameter, recursively counts the number of characters in the string (excludi…
1. (70 points) Translate the high-level language code below into assembly instru
1. (70 points) Translate the high-level language code below into assembly instructions. The variables A, B, C, D, E and F are located in the memory and can be accessed by their la…
1. (8 pts) Execute the following assembly instructions and determine the result
1. (8 pts) Execute the following assembly instructions and determine the result ebp = 0x127AC char B128 ebp 5 int resulti ebp 4) a. movs x eax, Bi mov result,eaxi result - b. mov …
1. (8pts) For each of the following, state whether or not the address given is a
1. (8pts) For each of the following, state whether or not the address given is a valid formatted MAC address. If it is not a valid MAC address, explain in one sentence why not. A.…
1. (9 pts) In class we used Monte Carlo simulation to estimate the area of a cir
1. (9 pts) In class we used Monte Carlo simulation to estimate the area of a circle. You can use the Monte Carlo method to estimate the area of all kinds of shapes! In this proble…
1. (9pts) Eco Friendly Designs has decided to open an office on the first floor
1. (9pts) Eco Friendly Designs has decided to open an office on the first floor of an office building in Pleasantville, CA They plan to be here for a while and rent more space to …
1. (Adapted from Patterson and Hennessy). Referring to the diagram of a simulate
1. (Adapted from Patterson and Hennessy). Referring to the diagram of a simulated MIPS CPU implementation that was handed out in class, consider what would happen if one of the co…
1. (Analysis of Algorithms) Find an asymptotically-tight bound for the following
1. (Analysis of Algorithms) Find an asymptotically-tight bound for the following algorithm. Show your work. Algorithm 1 The Karatsuba multiplication algorithm Preconditions: p(x)-…
1. (Basic Pointers and Pointer Arithmetic) Write a C program that will do the fo
1. (Basic Pointers and Pointer Arithmetic) Write a C program that will do the following: a. Create two integer variables x and y, and an integer array z[5] b. Set the vari…
1. (CarbonFootprint Interface: Polymorphism) Using interfaces, you can specify s
1. (CarbonFootprint Interface: Polymorphism) Using interfaces, you can specify similar behaviors for possibly disparate classes. Governments and companies worldwide are becoming i…
1. (Count positive and negative numbers and compute the average of numbers) Writ
1. (Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative…
1. (Find the smallest element) Write a program to accept 10 numbers from the use
1. (Find the smallest element) Write a program to accept 10 numbers from the user as a console application. a. These 10 numbers must be double data type, and stored in an array of…
1. (Implement MyMap using open addressing with linear probing.) Create a new con
1. (Implement MyMap using open addressing with linear probing.) Create a new concrete class that implements MyMap using open addressing with linear probing. Use h(key) = key % siz…
1. (In Java) Write static methods for the following • publicstaticdoublespher
1. (In Java) Write static methods for the following • publicstaticdoublesphereVolume(doubler) • publicstaticdoublesphereSurface(doubler) • publicstaticdoublecylinderVol…
1. (Membership problem for a DFA). Input: A (deterministic) finite automaton is
1. (Membership problem for a DFA). Input: A (deterministic) finite automaton is a 5-tuple M (Q, 3, go, A, 5), where Q is a finite set of states, is a finite input alphabet, qo e Q…
Subject
Web development and programming
Use Browse or pick another subject.