Browse W
Alphabetical listing with fast deep pagination.
66619 items • Page 1008 / 1333
Write a function named get_age_on(birthday, other) that accepts two Date objects
Write a function named get_age_on(birthday, other) that accepts two Date objects as parameters: one to represent a person’s birthday, and one to represent an arbitrary date. The f…
Write a function named greatestCommonDivisor which takes in two inputs and retur
Write a function named greatestCommonDivisor which takes in two inputs and returns the greatest common divisor of the inputs. The greatest common divisor for two numbers is a numb…
Write a function named inoutRoster that prompts a user for the name of a class r
Write a function named inoutRoster that prompts a user for the name of a class roster. The function has no parameters. This roster has names in the format IastName,firstName (no s…
Write a function named inputRoster that prompts a user for the name of a class r
Write a function named inputRoster that prompts a user for the name of a class roster. The function has no parameters. This roster has names in the format lastName,firstName (no s…
Write a function named insertinArray that takes the parameters list as an intege
Write a function named insertinArray that takes the parameters list as an integer array, size for the capacity of the array, numltems has the number of items in the array, index w…
Write a function named is Even that takes an integer argument n and returns a bo
Write a function named is Even that takes an integer argument n and returns a boolean value. Implement the function so that it returns true when n is even and false when n is odd.…
Write a function named isVowel that accepts a character and returns true if the
Write a function named isVowel that accepts a character and returns true if the character is a vowel or false otherwise. Write a function named removeVowels that accepts a string …
Write a function named isvalidReal() that checks for a valid double-precision nu
Write a function named isvalidReal() that checks for a valid double-precision number. This kind of number can have an optional + or - sign, at most one decimal point (which can be…
Write a function named lineStats that finds the number of words and the number o
Write a function named lineStats that finds the number of words and the number of characters on each line of a file and writes those statistics to a corresponding line of a new fi…
Write a function named longestSortedSequence that accepts an array of integers a
Write a function named longestSortedSequence that accepts an array of integers as a parameter and that returns the length of the longest sorted (non-decreasing) sequence of intege…
Write a function named makeCollage to creates a collage of the same image at lea
Write a function named makeCollage to creates a collage of the same image at least four times to fit onto the 7x95in.jpg blank JPEG. (You are welcome to add additional images, but…
Write a function named makeCollage to creates a collage of the same image at lea
Write a function named makeCollage to creates a collage of the same image at least four times to fit onto the 7x95in.jpg blank JPEG. (You are welcome to add additional images, but…
Write a function named matrix_multiply which has input arguments two matrices an
Write a function named matrix_multiply which has input arguments two matrices and returns a result which is the product of the two matrices (in the order listed). If the matrices …
Write a function named modTest that takes a number as input and does all of the
Write a function named modTest that takes a number as input and does all of the following: 1) Determine if the input is even or odd and display the results in the format shown bel…
Write a function named oddsEvens that takes in a vector of positive integers and
Write a function named oddsEvens that takes in a vector of positive integers and returns (via the parameters) how many of those integers are odd and how many are even. For example…
Write a function named percentOfEvenPositiveNumbers which has two input paramete
Write a function named percentOfEvenPositiveNumbers which has two input parameters: numbers (an array of integers) and size (an integer representing the actual number of element u…
Write a function named pluralize that takes 2 arguments: a noun and a number. Th
Write a function named pluralize that takes 2 arguments: a noun and a number. Then, it returns the number and the pluralized form, like "5 cats" or "1 dog". Pay attention to the '…
Write a function named problem2 in a header file that accepts two arguments: a t
Write a function named problem2 in a header file that accepts two arguments: a two dimensional vector of a template type and a value of the sample template type as is stored in th…
Write a function named r-series-max-power which computes the equivalent resistan
Write a function named r-series-max-power which computes the equivalent resistance and maximum power rating of a network of resistors in series. The function arguments are two row…
Write a function named readData that gets data from a file and populates the arr
Write a function named readData that gets data from a file and populates the array(s) to read the data. The data file from which your getting the data from is named data.in The da…
Write a function named rectangle() that uses turtle graphics to draw a rectangle
Write a function named rectangle() that uses turtle graphics to draw a rectangle. The function rectangle() takes two parameters: t. a turtle that is used to draw and short Side, t…
Write a function named replaceSubstring. The function should accept three C-stri
Write a function named replaceSubstring. The function should accept three C-string or string object arguments. Let's call them string1, string2, and string3. It should search for …
Write a function named replaceSubstring. The function should accept three C-stri
Write a function named replaceSubstring. The function should accept three C-string or string object arguments. Let's call them string1, string2, and string3. It should search for …
Write a function named replaceSubstring. The function should accept three C-stri
Write a function named replaceSubstring. The function should accept three C-string or string object arguments. Let's call them string1, string2, and string3. It should search for …
Write a function named solveSystem that has three inputs: %two vectors % consist
Write a function named solveSystem that has three inputs: %two vectors % consisting of the coefficients [a b c] of two line equations of the form ax + by = c and a vector of x val…
Write a function named solveSystem that has three inputs: %two vectors % consist
Write a function named solveSystem that has three inputs: %two vectors % consisting of the coefficients [a b c] of two line equations of the form ax + by = c and a vector of x val…
Write a function named sortie that takes three integer parameters by reference a
Write a function named sortie that takes three integer parameters by reference and rearranges them in ascending order--the first parameter being the smallest, the third parameter …
Write a function named tttDrawGrid() using turtle graphics that draws the grid f
Write a function named tttDrawGrid() using turtle graphics that draws the grid for a TicTacToe game. A TicTacToe grid consists of two sets of two parallel lines, creating nine cel…
Write a function named ubi Zr.axe qet LU () that takes (as input) any size squar
Write a function named ubi Zr.axe qet LU () that takes (as input) any size square matrix and returns (as outputs) the matrices L and U from its LU decomposition in the conventiona…
Write a function named ubitname_get_LU () that takes (as input) any size square
Write a function named ubitname_get_LU () that takes (as input) any size square matrix and returns (as outputs) the matrices L and U from its LU decomposition in the conventional …
Write a function named ubitname_get_LU() that takes (as input) any size square m
Write a function named ubitname_get_LU() that takes (as input) any size square matrix and returns (as outputs) the matrices L and U from its LU decomposition in the conventional f…
Write a function named wordCount that counts how many words there are in each li
Write a function named wordCount that counts how many words there are in each line of an input file and writes that count to a corresponding line of an output file. The input file…
Write a function named zeropadshift() that takes its arguments the following: 1-
Write a function named zeropadshift() that takes its arguments the following: 1-an array of integer values. 2- an integer o the array size. 3- an integer distance that tells how m…
Write a function named. reverse. which reverses the order of an array\'s element
Write a function named. reverse. which reverses the order of an array's elements without creating another array. The header for the function, reverse, is: void reverse (int arr []…
Write a function neg. 11() which (1) takes three arguments par, x, y; (2) return
Write a function neg. 11() which (1) takes three arguments par, x, y; (2) returns the negative log-likelihood value of the regression model of y~x when the error term follows a No…
Write a function of the form: lnt isPresentlnArray(int n, int x(), lnt value) wh
Write a function of the form: lnt isPresentlnArray(int n, int x(), lnt value) which given an array x [] of length n. checks to sec if value is present as one of the elements. If v…
Write a function of the form: void setupRandArray (int n, int x[], int minVal, i
Write a function of the form: void setupRandArray (int n, int x[], int minVal, int maxVal) which sets up random values for the n-dimensional array x[]. Each random value is an int…
Write a function parse_data (filename) that reads in a series of records from a
Write a function parse_data (filename) that reads in a series of records from a file, each corresponding to a reported case of flu (from the years 2010-2014), and converts the dat…
Write a function perfect that determines whether anumber is a perfect number or
Write a function perfect that determines whether anumber is a perfect number or not. This function should receive anumber and return true if the number is perfectand false otherwi…
Write a function perpendicular() which determines whether two 2D vectors are per
Write a function perpendicular() which determines whether two 2D vectors are perpendicular to each other. In order to make this determination, we will compute two perpendicular ve…
Write a function plotCDPrices(cds) that plots for you the prices of all your cds
Write a function plotCDPrices(cds) that plots for you the prices of all your cds in ascending order (smallest to largest). Add a title to this plot. This function again takes an a…
Write a function points that takes four arguments, The numbers x1, y1, x2, and y
Write a function points that takes four arguments, The numbers x1, y1, x2, and y2 are coordinates of two points (x1, y1) and (x2, y2) in the plane. Your function should compute: T…
Write a function power in C which is given two inputs - an integer base and an i
Write a function power in C which is given two inputs - an integer base and an integer exponent which returns the value of base to the power of exponent prototype of function: int…
Write a function prime_isolated(a, b) that returns as output (argument) ALL prim
Write a function prime_isolated(a, b) that returns as output (argument) ALL prime numbers p in the interval [a, b] (inclusive) for which neither p - 2 NOR p + 2 arc prime numbers …
Write a function printBinary() that displays the number of bits used VB2010. Usi
Write a function printBinary() that displays the number of bits used VB2010. Using 'sizeof()' if the user enters and int 17 the function should display 000000000000000000000000000…
Write a function printBinary() that displays the number of bits used VB2010. Usi
Write a function printBinary() that displays the number of bits used VB2010. Using 'sizeof()' if the user enters and int 17 the function should display 000000000000000000000000000…
Write a function printNthCharacter that prints the nth character from every stri
Write a function printNthCharacter that prints the nth character from every string in an array of strings. It should take as input: an array of strings words an integer size for t…
Write a function processAccount() that takes one argument, the name of a file Th
Write a function processAccount() that takes one argument, the name of a file The first line of the file is a number, which indicates the initial balance for a bank account. The r…
Write a function read_list() which prompts for the list of non-negative numbers
Write a function read_list() which prompts for the list of non-negative numbers terminated by -99. Read the non-negative integers into an array which stores integer numbers. The n…
Write a function read_list() which prompts for the list of non-negative numbers
Write a function read_list() which prompts for the list of non-negative numbers terminated by -99. Read the non-negative integers into an array which stores integer numbers. The n…