352 Answered Questions for the topic programming

2d

#### Create a program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc.

I am creating a Zeller's program but not sure how to. Please help me out.Research a rule called "Zeller's Congruence". This rule provides a complex formula that can be used to determine what day of...
more

3d

#### Swap Ends. The existing code reads in a size to NUM_VALUES, makes an array called values

The existing code reads in a size to NUM_VALUES, makes an array called values (I am cheating... do not make variable sized arrays!), and then reads in values for it. Your task is to swap the first...
more

3d

#### Declare an array.

Declare an array of 5 doubles called values - initialize it with 1.6, 3.1, 8.3, 9.1, 4.8Code:#include <iostream>#include <iomanip>using namespace std;int main(){ const int NUM_VALUES...
more

3d

#### Square Array. The existing codetries to make use of a function void squareArray(const int array[], int destination[], int size).

The existing codetries to make use of a function void squareArray(const int array[], int destination[], int size). This function should take each of the size elements from array, square the...
more

3d

#### Add Negatives. The existing code is trying to call a function addNegatives that should take an array of ints and its size and return the sum of JUST the negative numbers from the array.

The existing code is trying to call a function addNegatives that should take an array of ints and its size and return the sum of JUST the negative numbers from the array. Your task is to write the...
more

4d

#### Objective: Leap years as we know them began in 1582. You are going to create a program that allows the user to enter a year and be told whether it is a leap year or a common year.

Specifications:
When your program opens, give a brief description of what a leap year is and why we have them.
Ask the user to enter a year.
You must use TryParse to determine if the user has...
more

6d

#### Find y such that the triangle has an area of 12 square units. (Enter your answers as a comma-separated list.)

(−4, 2), (−3, 5), (−1, y)y = _____

6d

#### Consider the system of linear equations

a1x + b1y = c1a2x + b2y = c2where a1, b1, c1, a2, b2, and c2 represent real numbers. What must be true about the lines represented by the equations when the following is true?A: The lines must...
more

Programming

9d

#### Write a C program

Suppose you have to develop small software to assist the primary students. Write a program that will help an elementary school student learn multiplication. Use the generatenumber function to...
more

9d

#### 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

9d

#### 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

9d

#### 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

10d

#### 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

10d

#### 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

10d

#### 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

10d

#### 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

11d

#### 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

11d

#### 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

13d

#### 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

14d

#### Use an inverse matrix to solve (if possible) the system of linear equations. (If there is no solution, enter NO SOLUTION. If the system is dependent, set y = a and solve for x in terms of a.)

5/6x - y = -184/3x - 7/2y = -44(x,y) = _____

17d

#### 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

17d

#### 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

17d

#### 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

18d

#### 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

18d

#### 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

## 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.