Web development and programming
191828 questions • Page 265 / 3837
1. Write a function called find_min_max() that accepts an array of doubles and t
1. Write a function called find_min_max() that accepts an array of doubles and the number of items in the array as input parameters, and returns the minimum and maximum values in …
1. Write a function called printAr that will display the values in an array of i
1. Write a function called printAr that will display the values in an array of integers. The function takes two arguments: an array of integers and an integer that represents the …
1. Write a function called yLim which takes as input the vectors r and y. This f
1. Write a function called yLim which takes as input the vectors r and y. This function returns a vector of length 2, which contains the values in y that occur in the positions of…
1. Write a function called yLim which takes as input the vectors r and y. This f
1. Write a function called yLim which takes as input the vectors r and y. This function returns a vector of length 2, which contains the values in y that occur in the positions of…
1. Write a function deleteAtPositionN ) for a singly-linked list that has the fo
1. Write a function deleteAtPositionN ) for a singly-linked list that has the following declaration and precondition: int deleteAtPositionN (struct node *pHead, int n, int *pData)…
1. Write a function deleteAtPositionN() for a singly-linked list that has the fo
1. Write a function deleteAtPositionN() for a singly-linked list that has the following declaration and precondition: int deleteAtPositionN (struct node **pHead, int n, int *pData…
1. Write a function double (s) that takes an arbitrary string s as input, and th
1. Write a function double (s) that takes an arbitrary string s as input, and that uses recursion to construct and return the string formed by doubling each character in the strin…
1. Write a function filter that takes a predicate and a list as argument and ret
1. Write a function filter that takes a predicate and a list as argument and returns a list of only those elements that satisfy the predicate. Example: (filter odd? '(1 2 3 4 5 6 …
1. Write a function increment_value with the following prototype: void increment
1. Write a function increment_value with the following prototype: void increment_value (int *value); When passed the address of a variable, the function will increment the value s…
1. Write a function int QuadRoots( double a, double b, double c, double &r1;, do
1. Write a function int QuadRoots( double a, double b, double c, double &r1;, double &r2;) that takes the coefficients of a polynomial (a, b, c) and, if possible, calculat…
1. Write a function is even in Matlab using the following strategy. (Don\'t use
1. Write a function is even in Matlab using the following strategy. (Don't use an alternative method without first checking that it's okay.) • Input: an integer x. Output: true if…
1. Write a function named CHECK to implement the following flowchart. Preserve a
1. Write a function named CHECK to implement the following flowchart. Preserve all registers used in the function. Some things to keep in mind: - It is not necessarily the case th…
1. Write a function named Pig that plays the game of Pig. The rules are simple:
1. Write a function named Pig that plays the game of Pig. The rules are simple: In a game of Pig, two players race to reach 100 points. Each turn, a player repeatedly rolls a die …
1. Write a function named getColumnsum0 that takes 1) a column index and 2) a tw
1. Write a function named getColumnsum0 that takes 1) a column index and 2) a two-dimensional array with 10 rows and 15 columns and returns the sum of the elements in the specifie…
1. Write a function named name_get_LU()that takes (as input) any size square mat
1. Write a function named name_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 for…
1. Write a function power that takes two parameters: x (double) and y (int), and
1. Write a function power that takes two parameters: x (double) and y (int), and returns the value xy for integer y. Make sure that your function works correctly for both positive…
1. Write a function smallestPrimeFactor of type Integer - Integer that returns t
1. Write a function smallestPrimeFactor of type Integer - Integer that returns the smallest prime factor of its integer argument. Your function need not behave well if the paramet…
1. Write a function that converts a string into an int. Assume the int is betwee
1. Write a function that converts a string into an int. Assume the int is between 10 and 99. Do not use the atoi() or the stoi() function. 2. Write a function prototype for proble…
1. Write a function that finds the length of a list of list_node_t nodes. Functi
1. Write a function that finds the length of a list of list_node_t nodes. Function prototype: int length(list_node_t *headp); 2. Write a recursive version of function search (see …
1. Write a function that finds the maximum value in an array containing n intege
1. Write a function that finds the maximum value in an array containing n integers. Compute T(n) for the function. Write a function that finds the largest difference between succe…
1. Write a function that prints a one dimensional array of doubles to the screen
1. Write a function that prints a one dimensional array of doubles to the screen. The prototype is: void printArrayForward(double* array, int size); and write a function that prin…
1. Write a function that replace vowels within the string star(*). For example v
1. Write a function that replace vowels within the string star(*). For example vowels are 'a','e','i','o','u' so if my string is "red is awesome!" the expected output should be "s…
1. Write a function that takes an integer array and the array\'s size as paramet
1. Write a function that takes an integer array and the array's size as parameters. The function will check if the array is sorted. If it is, it will return a 1. If it is not sort…
1. Write a function that takes an integer array and the array\'s size as paramet
1. Write a function that takes an integer array and the array's size as parameters. The function will check if the array is sorted. If it is, it will return a 1. If it is not sort…
1. Write a function that takes raises an integer input, base, to the power speci
1. Write a function that takes raises an integer input, base, to the power specified by the nonnegative integer, exponent. 2. Write an elementary calculator in which the main prog…
1. Write a function that will merge the contents of two sorted(ascending order)
1. Write a function that will merge the contents of two sorted(ascending order) arrays of type double values, storing the resultin an array output parameter (stil…
1. Write a function that will merge the contents of two sorted(ascending order)
1. Write a function that will merge the contents of two sorted(ascending order) arrays of type double values, storing the resultin an array output parameter (stil…
1. Write a function to add up and return the sum of all the numbers in an array
1. Write a function to add up and return the sum of all the numbers in an array of int up to but not including the first 0 value. (Assume there is a 0 value in the array.) 2. Writ…
1. Write a function to draw an int array using stars. Assume values in the range
1. Write a function to draw an int array using stars. Assume values in the range 0-20. For example, for the array { 2, 4, 2, 1, 7 } you would draw: ** **** ** * ******* 1.1. Each …
1. Write a function to have a user enter some number of integers into an array.
1. Write a function to have a user enter some number of integers into an array. The integer values must be between -100 and +100 inclusive (+100 and -100 should be accepted as val…
1. Write a function to read innumbers and put them into the array. The function
1. Write a function to read innumbers and put them into the array. The function should continueto read in numbers until either: the user types a negativenumber, or 100 number…
1. Write a function using C language for finding the magnitude orphase of an ima
1. Write a function using C language for finding the magnitude orphase of an imaginary number. The function should have astructure input parameter and an integer input paramete…
1. Write a function void capitalize (char *) that is passed a string and modifie
1. Write a function void capitalize (char *) that is passed a string and modifies that string to capitalize all lowercase letters in the string. I recommend you use the toupper fu…
1. Write a function which calculates the amount of hours, minutes, and seconds p
1. Write a function which calculates the amount of hours, minutes, and seconds passed the time of 00:00 in a 24 hour clock. For example: Enter how many seconds past 00:00: 342345 …
1. Write a function which takes a C string as an input and converts it to all up
1. Write a function which takes a C string as an input and converts it to all uppercase characters. For each lowercase character in the C string, simply subtract 32 from it to for…
1. Write a function with the following description. /* * This function inspects
1. Write a function with the following description. /* * This function inspects the characters in the given array charArray * and returns true, iff the array contains a palindrome…
1. Write a function with the following description. /* * This function inspects
1. Write a function with the following description. /* * This function inspects the characters in the given array charArray and * returns the character that has the highest number…
1. Write a function, stringStats(inputString), that takes as input a string of l
1. Write a function, stringStats(inputString), that takes as input a string of letters (possibly upper and lower case) and prints three things: the lexicographically smallest lett…
1. Write a functions that is passed a double called presntValue , a double calle
1. Write a functions that is passed a double called presntValue, a double called annualInterest, and an integer called months as parameters. The function calculates the future val…
1. Write a generic queue in Cusing a \"void implementation. The implementation s
1. Write a generic queue in Cusing a "void implementation. The implementation should use an array to hold the queue elements. Use a "circular" implementation that wraps the end of…
1. Write a getInt() method that takes as input a String prompt and a Scanner, an
1. Write a getInt() method that takes as input a String prompt and a Scanner, and returns an integer. This method prompts a user for an integer. If the entered value is an integer…
1. Write a getInt() method that takes as input a String prompt and a Scanner, an
1. Write a getInt() method that takes as input a String prompt and a Scanner, and returns an integer. This method prompts a user for an integer. If the entered value is an integer…
1. Write a grading program for a class with the following grading policies: a. T
1. Write a grading program for a class with the following grading policies: a. There are five quizzes, each graded on the basis of 10 points b. There are five programming assignme…
1. Write a grading program for a class with the following grading policies: a. T
1. Write a grading program for a class with the following grading policies: a. There are five quizzes, each graded on the basis of 10 points b. There are five programming assignme…
1. Write a grading program for a class with the following grading policies: a. T
1. Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one f…
1. Write a grading program for a class with the following grading policies: a. T
1. Write a grading program for a class with the following grading policies: a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one f…
1. Write a grammar that generates strings of 0\'s and 1\'s such that each block
1. Write a grammar that generates strings of 0's and 1's such that each block of 0's is followed by as many 1's. 2. Write a grammar that generates string over{a,b,c} where each st…
1. Write a hangman’s program where the user is a computer that has to guess the
1. Write a hangman’s program where the user is a computer that has to guess the word “JAVA.” The computer uses a brute force method. a. First write the program that shows (prints)…
1. Write a java program in java swing or javafx or just java that computes the i
1. Write a java program in java swing or javafx or just java that computes the intersection point of two lines AB and CD. The user will specify the points A, B, C and D by clickin…
1. Write a java program that utilize the observer pattern to simulate the follow
1. Write a java program that utilize the observer pattern to simulate the following scenario. Three subscribers received news from a publisher. There are three news messages that …
Subject
Web development and programming
Use Browse or pick another subject.