188 Answered Questions for the topic Computer

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

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

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

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

write an Algorithm, not a code

"NOTE: write an algorithm, not a code"You are given a file called “std” and composed of “Number, Name, Address” fields/attributes. (You can define the type of fields by yourself) Write... more

Will this result in syntax error? for the same array as the below question, int [] salaries = {20,95, 77,56, 83} the statement salaries[5]=100

Will this result in syntax error?for the same array as the above question,int [] salaries = {20,95, 77,56, 83}the statement salaries[5]=100This will result in what if not syntax error?(((Given an... more

Given an array declaration of salaries in thousands of dollars, int [] salaries = {20,95, 77,56, 83} The a=index at which the salary 56 is found is

Given an array declaration of salaries in thousands of dollars, int [] salaries = {20,95, 77,56, 83}The a=index at which the salary 56 is found is

Is it True That; Here is a program that tries to change the value of one the element of an array by passing the array to a changeNames method:

Here is a program that tries to change the value of one the element of an array by passing the array to a changeNames method:Is This True? The output of this program is[Alison, Biance, Cody,... more

 Is the following TRUE? Given the following quadrant method below: This method returns which quadrant of the x/y plane this Point object falls in?

Given the following quadrant  method to the Point class: public class Point { private int x; private int y; public int quadrant(){ if (x >0) return 1 if (x<0) return 2; if (y>0)... more

Write a main program in a class called SquareMain.java that instantiates two square objects called s1 and s2.

Write a main program in a class called SquareMain.java that instantiates two square objects called s1 and s2.Perform the following actions on s1 and s2 using methods of the Square classCreate s1... more

Here is a UML diagram for a geometric figure, the Square. Use this diagram to write a class called Square.java that contains the instance variables and instance methods given below:

Here is a UML diagram for a geometric figure, the Square. Use this diagram to write a class called Square.java that containsthe instance variables and instance methods given... more

Write method to calculate Stimulus Amount. name: calculateStimulus, Parameters; Integer Array called Ages that contains ages of people &return type: void& works for any array size

Write the method to calculate Stimulus Amount:        Method name: calculateStimulus       Parameters:  Integer Array called Ages that contains ages of people       Return type: void        Logic:... more

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

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

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

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

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

a program that reads names from a file  However, the program does not work as expected. It gives an ArrayOutOfBounds exception. Correct this without changing the size of the array.

Here is a program that reads names from a file Friends-1.txt  download  and stores them in an array called friends.It then asks the user for a name and searches the array for the friend. If it... more

Explain ways Scanner class create objects that can input data from the three types of input sources. Give 3 examples of the use of Scanner objects. Describe 1 Scanner method

Explain the ways in which the Scanner class can be used to create objects that can input data from the three types of input sources.Give 3 examples of the use of Scanner objects. Describe 1 Scanner... more

Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers.  Upd

Modify the above program so that it reads from the file FriendsPhones.txt,  download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. Update... more

Method called searchGenius inputs information from user& tries to find a genius student.. Not work as expected. debug the method by 1. What line does error occur? 2. what is the error & why 3. correct

Here is a method called searchGenius inputs information from the user and tries to find a genius student. A "genius" student is considered to be one who is between 18 and 21 years of age, has... more

For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.

For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.a) int x = 1; while (x < 100) { ... more

What is Fencepost algorithm? Use it to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number of characters in each string separated by ",".

Explain "Fencepost algorithm" Use this technique to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number ofcharacters in each string... more

Programming Answer Issue

The Answers you gave me for Programming 4-14, Programming 4-21, and Programming 5-4 didn't translate or interpret well in Cengage MindTap C++ program.

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.