Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Browse W

Alphabetical listing with fast deep pagination.
66619 items • Page 1003 / 1333

All 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Write a function called isAnagram that takes two strings as arguments and return
Write a function called isAnagram that takes two strings as arguments and returns a boolean true if the two strings are anagrams, otherwise it returns false. Two strings are anagr…
Write a function called isIthRowExactlyZero that takes a 2D array of real number
Write a function called isIthRowExactlyZero that takes a 2D array  of real numbers, called M, and returns true  if *all* the elements  in the ith row are 0.0, and false  if not. M…
Write a function called isIthRowExactlyZero that takes a 2D array of real number
Write a function called isIthRowExactlyZero that takes a 2D array  of real numbers, called M, and returns true  if *all* the elements  in the ith row are 0.0, and false  if not. M…
Write a function called is_ consonant () that accepts a file handle (FILE *) to
Write a function called is_ consonant () that accepts a file handle (FILE *) to an already opened file and a character as input parameters, and returns 0 (false) if the character …
Write a function called largest that takes a list of integers as argument. It re
Write a function called largest that takes a list of integers as argument. It recursively returns the largest integer of the list. Here are few sample runs: >>> largest([…
Write a function called light_speed that takes as input a row vector of distance
Write a function called light_speed that takes as input a row vector of distances in kilometers and returns two row vectors of the same length. Each element of the first output ar…
Write a function called light_speed that takes as input a row vector of distance
Write a function called light_speed that takes as input a row vector of distances in kilometers and returns two row vectors of the same length. Each element of the first output ar…
Write a function called makemat that will receive two row vectors as input argum
Write a function called makemat that will receive two row vectors as input arguments, and from them create and return a matrix with two rows. You may not assume that the length of…
Write a function called mathgame.m that repeatedly asks a user to answer a simpl
Write a function called mathgame.m that repeatedly asks a user to answer a simple addition question. After each question the user is told if their answer is correct or incorrect a…
Write a function called mathgame.m that repeatedly asks a user to answer a simpl
Write a function called mathgame.m that repeatedly asks a user to answer a simple addition question. After each question the user is told if their answer is correct or incorrect a…
Write a function called matrixMax that returns the largest element in a matrix o
Write a function called matrixMax that returns the largest element  in a matrix of doubles , with numRows and numCols. A function definition skeleton is provided. Note that the pr…
Write a function called max that takes as input a reference to a single queue of
Write a function called max that takes as input a reference to a single queue of integers and returns the largest integer in the queue without destroying the queue. That is, the q…
Write a function called max_consecutive_integers() that accepts a two-dimensiona
Write a function called max_consecutive_integers() that accepts a two-dimensional array of signed integers, the number of rows, the number of columns as input parameters, and two …
Write a function called median that returns the median entry in a 1-dimensional
Write a function called median that returns the median entry in a 1-dimensional array of integers. For example, if we have an array a={3,4,5,1,6}; then the median entry of this ar…
Write a function called my_str_n_cat () that accepts pointer to a destination ch
Write a function called my_str_n_cat () that accepts pointer to a destination character array and a pointer to a source character array (which is assumed to be a string) and retur…
Write a function called myfind that will search for a key in a vector and return
Write a function called myfind that will search for a key in a vector and return the indices of all occurrences of the key, like the built-in find function. It will receive two ar…
Write a function called nRandomNumbers() to performing the following: . Generate
Write a function called nRandomNumbers() to performing the following: . Generates N random integers between -250 and 250 (inclusive) and save them in a file called number.txt. (Us…
Write a function called odd_rms that returns orms, which is the square root of t
Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is…
Write a function called ordered_freq_distribution with two parameters: infile an
Write a function called ordered_freq_distribution with two parameters: infile and ordered distfile. The first parameter, infile, is the name of the file for which we want to compu…
Write a function called poly_val that is called like this p poly val (ce,c,x), w
Write a function called poly_val that is called like this p poly val (ce,c,x), where ce and x are scalars, and p is a scalar. If e is an empty vector, then pace. If e is a scalar,…
Write a function called primes that takes two positive integers m and n as input
Write a function called primes that takes two positive integers m and n as input arguments, and returns vector containing all the prime numbers between m and n. If m > n, then …
Write a function called primes that takes two positive integers m and n as input
Write a function called primes that takes two positive integers m and n as input arguments, and returns vector containing all the prime numbers between m and n. If m > n, then …
Write a function called printStars . The function receives an int parameter. If
Write a function called printStars . The function receives an int parameter. If the parameter is positive, the function prints (to standard output) the given number of asterisks; …
Write a function called printStars . The function receives an int parameter. If
Write a function called printStars . The function receives an int parameter. If the parameter is positive, the function prints (to standard output) the given number of asterisks; …
Write a function called printStars. The function receives an int parameter . If
Write a function called printStars. The function receives an int  parameter . If the parameter is positive, the function prints (to standard output ) the given number of asterisks…
Write a function called readCountries that reads a file and returns a list of co
Write a function called readCountries that reads a file and returns a list of countries. The countries should be read from a file (countries.txt), which contains an incomplete lis…
Write a function called recCountVowels() that accepts a pointer to a string and
Write a function called recCountVowels() that accepts a pointer to a string and any other arguments you see fit, and recursively (make sure its recursive) counts the number of vow…
Write a function called repetitiveLines() that takes two string parameters. The
Write a function called repetitiveLines() that takes two string parameters. The first parameter is the name of an input file that exists before repetitiveLines() is called. The se…
Write a function called retirementAccount that has 4 parameters: initialDepositA
Write a function called retirementAccount that has 4 parameters: initialDepositAmount, mterestRate. niitialWithdrawAmoiuit. inflationRate. The function displays a bar graph of yea…
Write a function called reverse that accepts a c-string as an argument and rever
Write a function called reverse that accepts a c-string as an argument and reverses that argument in place returning the address of the first element of the c-string as a characte…
Write a function called reverse that accepts a c-string as an argument and rever
Write a function called reverse that accepts a c-string as an argument and reverses that argument in place returning the address of the first element of the c-string as a characte…
Write a function called reverse that accepts a c-string as an argument and rever
Write a function called reverse that accepts a c-string as an argument and reverses that argument in place returning the address of the first element of the c-string as a characte…
Write a function called reverse that accepts a c-string as an argument and rever
Write a function called reverse that accepts a c-string as an argument and reverses that argument in place returning the address of the first element of the c-string as a characte…
Write a function called reverse that accepts a c-string as an argument and rever
Write a function called reverse that accepts a c-string as an argument and reverses that argument in place returning the address of the first element of the c-string as a characte…
Write a function called reverseInt which takes one integer parameter and changes
Write a function called reverseInt which takes one integer parameter and changes the value of this integer parameter to the reverse of the integer. trace void function1(int& i…
Write a function called reverse_array that takes two arguments: a one-dimensiona
Write a function called reverse_array that takes two arguments: a one-dimensional array of type double and the size of that array; and modifies this array by rearranging it in rev…
Write a function called rps that will simulate playing rock, paper, scissors wit
Write a function called rps that will simulate playing rock, paper, scissors with the computer. Each time the function is called, the game is played once. The function rps returns…
Write a function called rps that will simulate playing rock, paper, scissors wit
Write a function called rps that will simulate playing rock, paper, scissors with the computer. Each time the function is called, the game is played once. The function rps returns…
Write a function called scale whose input is a matrix representingan image and t
Write a function called scale whose input is a matrix representingan image and the factor by which to scale the image’s brightness. This function returns anothermatrix representin…
Write a function called scan that takes a string as an argument and prints out o
Write a function called scan that takes a string as an argument and prints out one, and only one, of the following according to the argument: ME if the string me is in the input a…
Write a function called setToMin() that will work with the following section of
Write a function called setToMin() that will work with the following section of code. It works for any integer variable and will set it to the lowest of the subsequent three integ…
Write a function called simple_stats that takes a matrix N as an input and retur
Write a function called simple_stats that takes a matrix N as an input and returns the matrix S as the output. S has the same number of rows as N. Each element of the first column…
Write a function called sinx that has three possible inputs: A, x and y and one
Write a function called sinx that has three possible inputs: A, x and y and one output: dydx. The aim of the function is to calculate the derivative and this can be done using the…
Write a function called solveFile(Inputfilename, outputfilename). It takes two s
Write a function called solveFile(Inputfilename, outputfilename). It takes two string para met are which are filenames. The Input file will have multiple lines, where each line wi…
Write a function called sparse_array_struct that takes one two dimensional array
Write a function called sparse_array_struct that takes one two dimensional array as an input argument (it does not have to check the format of the input) and returns one column ve…
Write a function called spiral_diag_sum that takes an odd positive integer n as
Write a function called spiral_diag_sum that takes an odd positive integer n as an input and computes the sum of all the elements in the two diagonals of the n-by-n spiral matrix.…
Write a function called stringLen which accepts two arguments. Each argument con
Write a function called stringLen which accepts two arguments. Each argument contains the address of the first character string. Your function must return the length of one of tho…
Write a function called sumAndAverage. It should take in an array of numbers and
Write a function called sumAndAverage. It should take in an array of numbers and return the sum and average of the array in that order. For example: [s a] = sumAndAverage([3 2 3 2…
Write a function called timesTen that returns back to the caller the value passe
Write a function called timesTen that returns back to the caller the value passed into the function multiplied by 10. If the value passed into the function is negative, the functi…
Write a function called treeTop that prints the top of a tree. It should take no
Write a function called treeTop that prints the top of a tree. It should take no parameters and return void. Write a second function called treeTrunk that prints the trunk of a tr…