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

/* The DataStructureException class Anderson, Franceschi */ public class DataStr
/* The DataStructureException class Anderson, Franceschi */ public class DataStructureException extends Exception { public DataStructureException( String s ) { super( s ); } } ***…
/* The DataStructureException class Anderson, Franceschi */ public class DataStr
/* The DataStructureException class Anderson, Franceschi */ public class DataStructureException extends Exception { public DataStructureException( String s ) { super( s ); } } ~~~…
/* The HeapExperiment program test the MaxHeap to see the efficiency of the chan
/* The HeapExperiment program test the MaxHeap to see the efficiency of the changeKey() method. The runtime it takes to find the index in that method is linearithmic O(n log n). H…
/* The SimpleVector class template (see source code below) has been enhanced to
/* The SimpleVector class template (see source code below) has been enhanced to include SortableVector class template which sorts an array of objects in ascending order. Additiona…
/* The SimpleVector class template (see source code below) has been enhanced to
/* The SimpleVector class template (see source code below) has been enhanced to include SortableVector class template which sorts an array of objects in ascending order. Additiona…
/* The SimpleVector class template (see source code below) has been enhanced to
/* The SimpleVector class template (see source code below) has been enhanced to include SortableVector class template which sorts an array of objects in ascending order. Additiona…
/* The sorting algorithm is to be left as descending There are two logical bugs,
/* The sorting algorithm is to be left as descending There are two logical bugs, the number do not sort correctly Fix it Comment the code where the bugs where, comment out the ori…
/* This class define a linked list that stores integer values. */ public class L
/* This class define a linked list that stores integer values. */ public class LinkedList { public Node head, tail; //constructor method to create a list of object with head, tail…
/* This class encapsulates a list of user-defined items that should be done- a \
/* This class encapsulates a list of user-defined items that should be done- a "TODO" list. * Each item on the list is represented by a String object. * The list is implemented by…
/* This program cacluates the result of a number raised to an integer power. */
/* This program cacluates the result of a number raised to an integer power. */ #include <iostream> using namespace std; //Function declaration double my_pow(double, int); i…
/* This program computes the amount of tax on two items and the total cost inclu
/*            This program computes the amount of tax on two items and the total cost             including tax of the two items given the cost of the items and the tax rate.     …
/* This program is supposed to creat a producer and two consumer thread. When th
/* This program is supposed to creat a producer and two consumer thread. When the producer has put all the items in the buffer, it should wait When the consumer is empty, it shoul…
/* This program should emulate the pipe command. usage: ./a.out ls wc This shoul
/* This program should emulate the pipe command. usage: ./a.out ls wc This should return the equivalent of ls | wc if typed on terminal. The program requires TWO CHILD processors.…
/* This program takes thenatural logarithm of an input number */ #include
/* This program takes thenatural logarithm of an input number */ #include<stdio.h> #include <stdlib.h> #include <math.h> int main(void) {     double n; int i; fo…
/* Using GridLayout to organize our window Anderson, Franceschi */ import javax.
/* Using GridLayout to organize our window    Anderson, Franceschi */ import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Game extends JPanel { private …
/* Write a function that fills a dynamic, n x n array with integers from 1 to n
/* Write a function that fills a dynamic, n x n array with integers from 1 to n x n exactly. The array contains no duplicates.Use the array you created in problem 1 to create the …
/* Write a function that fills a dynamic, n x n array with integers from 1 to n
/* Write a function that fills a dynamic, n x n array with integers from 1 to n x n exactly. The array contains no duplicates.Use the array you created in problem 1 to create the …
/* Write a function that returns an integer number from the standard input strea
/* Write a function that returns an integer number from the standard input stream. The number is greater than or equal to the function’s lower bound parameter and is less than or …
/* Write a main function that dynamically allocates space for 100 customer point
/* Write a main function that dynamically allocates space for 100 customer pointers.     Keep track of the effective size of the array. Use the above function     to add some cust…
/* Write a program that reads all the numbers from the file \"mynumbers.txt\" *
/* Write a program that reads all the numbers from the file "mynumbers.txt" * and prints out the sum of the positive values from the file. * You must print an error if the file ca…
/* Write a program that reads in 10 numbers. Your program should do the followin
/* Write a program that reads in 10 numbers. Your program should do the following things:        - Determine the number positive or negative        - Count the number of positive …
/* Write a recursive method to remove the first occurrence of a specific String
/* Write a recursive method to remove the first occurrence of a specific String from a list. As an example, if your list initially contains AA BB CC DD BB KK and if your removee i…
/* Write and test a method mult with the following specification without using t
/* Write and test a method mult with the following specification without using the multiplication operator. Write a recursive method that performs the multiplication by repeated a…
/* company.sql Script to define and populate the example database COMPANY from C
/* company.sql Script to define and populate the example database COMPANY from Chapter 3 of Elmasri and Navathe (pp.70-75 in the 6th edition), with some modifications */ -- drop t…
/* company.sql Script to define and populate the example database COMPANY from C
/* company.sql Script to define and populate the example database COMPANY from Chapter 3 of Elmasri and Navathe (pp.70-75 in the 6th edition), with some modifications */ -- drop t…
/* company.sql Script to define and populate the example database COMPANY from C
/* company.sql Script to define and populate the example database COMPANY from Chapter 3 of Elmasri and Navathe (pp.70-75 in the 6th edition), with some modifications */ -- drop t…
/* company.sql Script to define and populate the example database COMPANY from C
/* company.sql Script to define and populate the example database COMPANY from Chapter 3 of Elmasri and Navathe (pp.70-75 in the 6th edition), with some modifications */ -- drop t…
/* complete the code for the following program which determines if a 2 dim array
/* complete the code for the following program which determines if a 2 dim array is a magic square. a magic square is an array whose rows, cols, and diagonals all sum to the same …
/* convert the following program discussed in class, to use if/else if statments
/* convert the following program discussed in class, to use if/else if statments instead of a switch statement: this is an example of a menu driven program create a simple calcula…
/* could you please run/edit my program to match the desired output, thanks in a
/* could you please run/edit my program to match the desired output, thanks in advance ________________c++ program desired output_____________ Please Enter your account number ( 1…
/* count the number of letters in a file read file name open file assign 0 to le
/* count the number of letters in a file read file name open file assign 0 to letter counter assign 0 to character counter read character while not end of file if character is a l…
/* cout > first; aList.info.setFi
/* cout << " What is student's first name? "; cin >> first; aList.info.setFirstName(first); <------ // This part is where i am going wrong the most !! cout <<…
/* example of a menu driven program create a simple calculator that will add sub
/* example of a menu driven program create a simple calculator that will add subtract multiply and divide values entered by the user */ import java.util.*; //used to include scann…
/* given my code im getting an error in main with the following lines : Checking
/* given my code im getting an error in main with the following lines : Checking C[5]; Saving S[5]; */ #include <iostream> #include <sstream> #include <string.h>…
/* greenhouse Show all the amendments and if they have been used in plantings sh
/* greenhouse Show all the amendments and if they have been used in plantings show how many plantings. Show the amendment code, name, and planting count. Use JOIN to join the tabl…
/* in this program, add input checking to make sure that the name, phone number,
/* in this program, add input checking to make sure that the name, phone number, and age are actually entered. Sample output: Enter a name: (none entered) Please enter a name: Ern…
/* llist.c -- Implementation for the doubly-linked list assignment * */ #include
/* llist.c -- Implementation for the doubly-linked list assignment * */ #include <stdlib.h> #include <stdio.h> #include <assert.h> /* We get the definition of LL…
/* llist.c -- Implementation for the doubly-linked list assignment * */ #include
/* llist.c -- Implementation for the doubly-linked list assignment * */ #include <stdlib.h> #include <stdio.h> #include <assert.h> /* We get the definition of LL…
/* logicalShift - shift x to the right by n, using a logical shift can assume th
/* logicalShift - shift x to the right by n, using a logical shift can assume that 0<= n <=31 Examples: logicalShift(0x87654321,4) = 0x08675432 Legal ops: ! ~ & ^ | + &l…
/* main method Prompt for player\'s name and store it in a variable Declare a va
/* main method Prompt for player's name and store it in a variable Declare a variable to contain the score and initialize it to zero Create a loop which does the following: Prompt…
/* output BEFORE function call - a is 10 20 30 40 50 60 70 80 90 node with 20 le
/* output BEFORE function call - a is 10 20 30 40 50 60 70 80 90 node with 20 leaving node with 30 leaving node with 40 leaving node with 50 leaving node with 60 leaving node with…
/* please add notes thank you */ John H. Conway (Scientific American, October 19
/* please add notes thank you */ John H. Conway (Scientific American, October 1970, p. 120) invented a game called Life to model the process of birth, survival, and death. The ide…
/* provide definitions of the functions computeStats, average, and standardDevia
/* provide definitions of the functions computeStats, average, and standardDeviation. Definitions of the inputScores and printStats functions are provided. The function computeSta…
/* pwm set up */ /* Compute the prescaler value */ PrescalerValue = (uint16_t) (
/* pwm set up */ /* Compute the prescaler value */ PrescalerValue = (uint16_t) ((SystemCoreClock /2) / 21000000) - 1; /* Time base configuration */ TIM_TimeBaseStructure.TIM_Perio…
/* return the smallest of the elements in array x[] * there are n elements in x[
/* return the smallest of the elements in array x[] * there are n elements in x[] (x[0].. x[n-1]) * solve the problem recursively and * use an "n-1" type of decomposition */ int m…
/* server.c . THIS IS TCP server*/ #include #include
/* server.c . THIS IS TCP server*/ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <string.h> #inc…
/* takes a string and reverses it without making a copy of the original array *
/* takes a string and reverses it without making a copy of the original array * My algorithm: * (1) get word * (2) get size of word * (3) send poiinter to function * (4) use temps…
/* this is the class program needed so I can run NumberAnonTesterPrac program be
/* this is the class program needed so I can run NumberAnonTesterPrac program below. The questions are all the way down. public class NumberAnonPrac {       private double value; …
/* write a class called student that has 4 member data items; name-studnets name
/* write a class called student that has 4 member data items; name-studnets name, a string -average-the students average as a double scores-an array of 4 ints-the students test sc…
/* • The following code consists of 5 parts. • Find the errors for each part and
/* •   The following code consists of 5 parts. •   Find the errors for each part and fix them. •   Explain the errors using comments on top of each part. */ #include <stdio.h&g…