Browse W
Alphabetical listing with fast deep pagination.
66619 items • Page 1011 / 1333
Write a function that inserts a new element at the beginning of an array. It sho
Write a function that inserts a new element at the beginning of an array. It should take in the array, the array size, and the element to be inserted. 3.3 Create a struct to repre…
Write a function that inserts the nodes of a binary tree into an ordered linked
Write a function that inserts the nodes of a binary tree into an ordered linked list. Also write a program to test your function.
Write a function that inserts the nodes of a binary tree into an ordered linked
Write a function that inserts the nodes of a binary tree into an ordered linked list. Also write a program to test your function. I need these headers Ch20_Ex9.cpp - given file bi…
Write a function that inserts the nodes of a binary tree into an ordered linked
Write a function that inserts the nodes of a binary tree into an ordered linked list. Also write a program to test your function. I need these headers Ch20_Ex9.cpp - given file bi…
Write a function that inserts the nodes of a binary tree into an ordered linked
Write a function that inserts the nodes of a binary tree into an ordered linked list. Also write a program to test your function. C++ Do not change anything in the supplied Ch19_E…
Write a function that inserts the nodes of binary tree into an ordered linked li
Write a function that inserts the nodes of binary tree into an ordered linked list. Write a program to test your function. Write a function that inserts the nodes of binary tree i…
Write a function that is called like this: amag = accelerate(F1,F2,m). F1 and F2
Write a function that is called like this: amag = accelerate(F1,F2,m). F1 and F2 are three-element column vectors that represent two forces applied to a single object. The argumen…
Write a function that is passed two date structures, d1 and d2, and returns an i
Write a function that is passed two date structures, d1 and d2, and returns an integer. Your function will compare the two dates and return -1 if d1 is earlier than d2, 1 if d1 is…
Write a function that is passed two date structures, d1 and d2, and returns an i
Write a function that is passed two date structures, d1 and d2, and returns an integer. Your function will compare the two dates and return -1 if d1 is earlier than d2, 1 if d1 is…
Write a function that lists 5 sale amounts in an array then loop through the sal
Write a function that lists 5 sale amounts in an array then loop through the sale amounts adding the individual sale amounts in order to determine the total sales amount. Display …
Write a function that loops through two arrays at once and compares to see if ea
Write a function that loops through two arrays at once and compares to see if each light is turned on in both rooms. If both lights are on, then add a value of “True” to an output…
Write a function that prints all the values that occur in an array and the numbe
Write a function that prints all the values that occur in an array and the number of times each value occurs. Below is an output sample. The function takes as parameters the array…
Write a function that reads PPM format images. A PPM image has an ASCII header f
Write a function that reads PPM format images. A PPM image has an ASCII header followed by binary pixel data. The header looks something like this: P6 650 652 255 P6 is a string t…
Write a function that reads PPM format images. A PPM image has an ASCII header f
Write a function that reads PPM format images. A PPM image has an ASCII header followed by binary pixel data. The header looks something like this: P6 650 652 255 P6 is a string t…
Write a function that reads a problem involving two common fractions such as 2/4
Write a function that reads a problem involving two common fractions such as 2/4 + 5/6. After reading the common fractions problem, call a function to perform the indicated operat…
Write a function that reads words from an input stream and stores them in a vect
Write a function that reads words from an input stream and stores them in a vector. Use that function both to write programs that count the number of words in the input and to cou…
Write a function that receives, as arguments, a pointer to a double array, as we
Write a function that receives, as arguments, a pointer to a double array, as well as the number of elements in the array (int). The function must use pointer operations and calcu…
Write a function that removes a String from the StringBag (if it is in the Strin
Write a function that removes a String from the StringBag (if it is in the StringBag). It should do this by finding the index where the String exists, and then overwriting it with…
Write a function that removes all even numbers from an array. The function shoul
Write a function that removes all even numbers from an array. The function should take the array, length of the array, and a pointer for number of odd numbers found as arguments a…
Write a function that reorders the values in three integer variables such that t
Write a function that reorders the values in three integer variables such that the values are in ascending order .assume that the founction has the following prototype statment: v…
Write a function that retuns logical true of vector or matrics or scaler is empt
Write a function that retuns logical true of vector or matrics or scaler is empty %% P2: Check for an empty matrix % Write a function myIsEmpty which takes one input (scalar, vect…
Write a function that returns a decimal number from a binary string. The functio
Write a function that returns a decimal number from a binary string. The function header is as follows int bin2 Dec (const strings binarystring) For example, binarystring 10001 is…
Write a function that returns an integer and accepts a pointer to a C-string as
Write a function that returns an integer and accepts a pointer to a C-string as an argument. The function should count the number of characters in the string and return that numbe…
Write a function that returns the average of an array of integers. The function
Write a function that returns the average of an array of integers. The function returns an int and is passed an array of ints and it's size as an int. Write a function that return…
Write a function that returns the digit value (an integer) corresponding to the
Write a function that returns the digit value (an integer) corresponding to the letter passed to it as an argument based on the encoding on your telephone handset. For example, if…
Write a function that returns the digit value (an integer) corresponding to the
Write a function that returns the digit value (an integer) corresponding to the letter passed to it an argument based on the encoding on your telephone handset. For example, if th…
Write a function that returns the index of character c in string str int index O
Write a function that returns the index of character c in string str int index Of(char * str, char c) Write a function that returns the index of substring sub in string str int in…
Write a function that returns the mean value of a number of integers in an array
Write a function that returns the mean value of a number of integers in an array. This array is passed to the function. The function prototype is: double get Mean (constant values…
Write a function that returns the values of the two inputs in reversed order: fu
Write a function that returns the values of the two inputs in reversed order: function [a, b] = swap(x, y). To use it to swap the values of two variables simply write [v1, v2] = s…
Write a function that returns true if an n x n array is a magic square and false
Write a function that returns true if an n x n array is a magic square and false if it is not. The function's prototype is bool magicSquare(int **, int n); Write a program to test…
Write a function that reverses the contents of an array of double and test it in
Write a function that reverses the contents of an array of double and test it in a simple program. GIVEN CODE: #include <stdio.h> #include <stdlib.h> void PrintArray(i…
Write a function that reverses the contents of an array of double and test it in
Write a function that reverses the contents of an array of double and test it in a simple program. THIS IS GIVEN: #include <stdio.h> #include <stdlib.h> void PrintArra…
Write a function that reverses the contents of an array of double and test it in
Write a function that reverses the contents of an array of double and test it in a simple program. GIVEN CODE: #include <stdio.h> #include <stdlib.h> void PrintArray(i…
Write a function that reverses the contents of an array of double and test it in
Write a function that reverses the contents of an array of double and test it in a simple program. GIVEN CODE: #include <stdio.h> #include <stdlib.h> void PrintArray(i…
Write a function that shifts the stored value of five character variables in a c
Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suppose that c1, c2,…, c5 are va…
Write a function that simulates the roll of a pair of dice. The function must ge
Write a function that simulates the roll of a pair of dice. The function must generate two random numbers between 1 and 6, and return the sum of the numbers. THIS IS WHAT I HAVE S…
Write a function that swaps the values of three int variables. It should have th
Write a function that swaps the values of three int variables. It should have the following prototype: void swap3(int *a, int *b, int *c) For example, calling swap3(&x, &y…
Write a function that swaps two Point objects in java. Use the code given below:
Write a function that swaps two Point objects in java. Use the code given below: import java.util.*; public class Main { public Main() { Scanner in = new Scanner(System.in); Syste…
Write a function that takes 4 arguments (integer, integer, picture, string). Thi
Write a function that takes 4 arguments (integer, integer, picture, string). This function should be able to be used on any picture. This means you should not use specific numbers…
Write a function that takes a C string as an input parameter and reverses the st
Write a function that takes a C string as an input parameter and reverses the string. The function should use two pointers, front and rear. The front pointer should initially refe…
Write a function that takes a C string as an input parameter and reverses the st
Write a function that takes a C string as an input parameter and reverses the string. The function should use two pointers, front and rear. The front pointer should initially refe…
Write a function that takes a C string as an input parameterand reverses the str
Write a function that takes a C string as an input parameterand reverses the string. The function should usetwo pointers front and rear. Thefront pointer should initially referenc…
Write a function that takes a grammar (such as the one defined in 8.3) and retur
Write a function that takes a grammar (such as the one defined in 8.3) and returns a random sentence generated by the grammar. (Use grammar.start() to find the start symbol of the…
Write a function that takes a linked list of integers and rearranges the nodes s
Write a function that takes a linked list of integers and rearranges the nodes so that the integers stored are sorted into the order smallest to largest, with the smallest integer…
Write a function that takes a numeric or integer vector and adds up only the num
Write a function that takes a numeric or integer vector and adds up only the numbers whose integer parts are even. Modify your answer to question above to include an option that a…
Write a function that takes a recipe and a coefficient and return a string descr
Write a function that takes a recipe and a coefficient and return a string describing the adjusted recipe. The input recipe is given as a cell array where each row describes one t…
Write a function that takes a sorted array of integers and counts how many diffe
Write a function that takes a sorted array of integers and counts how many different figures are for more than once. Example: For input f0, 1, 1, 1; 2; 4; 4; 5; 6; 6g answer is 3,…
Write a function that takes a two-dimensional list of numbers as a parameter. It
Write a function that takes a two-dimensional list of numbers as a parameter. It returns the index of the minimum row in the list. The minimum row is the row with the smallest sum…
Write a function that takes acharacter and a character array containing a null-t
Write a function that takes acharacter and a character array containing a null-terminated string(that does not fill the entire arrayparameter) andcopies each character in the stri…
Write a function that takes an array Arr of size N and returns another array whi
Write a function that takes an array Arr of size N and returns another array which, first disregards the numbers greater than a certain threshold (also a passed parameter), and th…