472 Answered Questions for the topic programming

Midpoint Finder. Write a function: void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)

Write a function:void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)Assume x1, y1 and x2, y2 represent two coordinates on a Cartesian plane. Calculate... more

MyMin. Write a function: int myMin(int num1, int num2)

Write a function:int myMin(int num1, int num2)It should return the lesser of the two parameters.Code:#include <iostream>using namespace std;//Do not modify anything on or above the line below... more

C To F. Write a function: double celsiusToFahrenheit(double celsius)

Write a function:double celsiusToFahrenheit(double celsius)It should return the Fahrenheit temperature equivalent to the given Celsius temp.F = (9.0 / 5) * C + 32Code:#include... more

String Trim2. Write a function stringTrim that removes the first and last characters from a given string.

Write a function stringTrim that removes the first and last characters from a given string. "chello" should become "hell".Your function must work correctly given the code in main shown below.... more

Midpoint Finder. Write a function:

Write a function:void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)Assume x1, y1 and x2, y2 represent two coordinates on a Cartesian plane. Calculate... more

help me output either a list of failing students (Less than 65) or a list of students on honor roll(above 90). ONLY USING A LOOP AND IF STATEMEN

using System;public class Program{ public static double[] arrayAvg(double[, ] a) { double[] tempArray = new double[a.GetLength(0)]; double sum = 0; for (int i = 0; i < a.GetLength(0);... more
Programming

05/02/21

Homework programming c

Create the function value(p), which returns the value of the product p, considering a=100, b=200, c=300, d=400

Show that B is the inverse of A.

A = -1/2 -5/4 B = 8 51 2 -4 -2To show that B is the inverse of A, we need to show that AB = I = BA.AB = -4 + ___ -5/2 + ___ = ____ ____ 8 + ___ 5 + ___ ____ ____BA = -4 +... more

Show that B is the inverse of A.

A = -1/2 -5/4 B = 8 5 1 2 -4 -2To show that B is the inverse of A, we need to show that AB = I = BA.AB = -4 + ___ -5/2 + ___ ... more

All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.

Read a string from cin into word and modify it so that it has all uppercase letters.Samples: Input: hello Output: HELLO Input: h3Llo Output: H3LLO Hints: You can only change the code in the... more

Count E's. Read in a string, print out the number of e's in it.

Read in a string, print out the number of e's in it. Note that the string may have spaces in it. A call to getline looks like getline(cin, myVariable) where myVariable is a string variable that... more

Web Log Parser. Submit to elearn: Make sure to name files EXACTLY as specified - including capitalization. Do not submit extra files. Do not zip or otherwise compress files unless told to.

ObjectiveYouwill be able to read data from a file and use string functions to process text.Assignment InstructionsShould be able to compile and run your program with: g++ -std=c++11 assign5.cpp -o... more

04/26/21

Tag Remover. Read in a string that may have spaces (use getline!).

Read in a string that may have spaces (use getline!). In the string will be something that looks like [TAG]text inside tag[/TAG] where TAG can be any string. Print out the TAG, a colon, and the... more

04/26/21

Sher. Write a word shortener.

Write a word shortener. Read in a string (you may assume no spaces). If it is 4 characters or less, print it back out. If it is more than 4 characters, print just the first two followed by the last... more

04/26/21

Caturday Check. Read a string (will not have spaces).

Read a string (will not have spaces). Print "true" if the word "cat" appears starting at the first or second letter. Otherwise print false.Samples: Input: catch Output: true Input: scatter ... more

04/26/21

First Middle Last Letter. Read in a string from cin (it will not have any whitespace).

Read in a string from cin (it will not have any whitespace). Print out the first character, middle character (if string is an even length, print the second of the two middle letters), and last... more

04/26/21

All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.

Read a string from cin into word and modify it so that it has all uppercase letters.Samples: Input: hello Output: HELLO Input: h3Llo Output: H3LLO Hints: You can only change the code in the... more

String Compactor. Write code that will read in a string and then print out every other character of the string.

Write code that will read in a string and then print out every other character of the string. You should use getline to read in the string... it may have spaces.Samples: Input of "Hello" should... more

Count E's. Read in a string, print out the number of e's in it.

Read in a string, print out the number of e's in it. Note that the string may have spaces in it. A call to getline looks like getline(cin, myVariable) where myVariable is a string variable that... more
Programming Math Calculus Precalculus

04/24/21

Solve for X using the matrices below.

2A + 4B = −2XA = 8 -5 and B = 0 7 1 0 2 0 9 -2 -2 -1X = _____ _____ _____ _____ _____ _____

Use a graphing utility to perform the operations for the matrices A, B, and C, and the scalar c.

A = -3 -2 3 0 2 -1 1 4 -2B= 1 -1 0 2 4 3 -2 1 0C = 3 -2 3 -4 0 -2 -1 1 3 c = 2(a) c(AB)_____ _____ __________ _____ __________ _____ _____(b) (cA)B_____ _____... more
Programming Math Calculus Precalculus

04/23/21

Use a graphing utility to perform the indicated operations.

A = 2 0 and B = 5 3 4 5 1 4B2 − 3B + 7Ɪ2= _____ ______ ______ ______
Programming Math Calculus Precalculus

04/23/21

Solve for X using the matrices below.

2A + 4B = −2XA = 8 -5 and B = 0 7 1 0 2 0 9 -2 -2 -1X = _____ _____ _____ _____ _____ _____

Find x and y from the matrix.

x+2 3 -7 2x+6 3 -7 5 2y 2x = 5 8 -85 7 y+2 5 7 6x = ____y = ____

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.