1,502 Answered Questions for the topic computer programming
05/24/21
Directions. Define a enumerated type Direction to make the following code work correctly.
Define a enumerated type Direction to make the following code work correctly. It should associate EAST with the value 0, NORTH with the value 90, WEST with 180 and SOUTH with 270.Code:#include...
more
05/24/21
Write a method that finds the operations which the results are wrong in given file
Assume that multiple arithmetic operations are stored in a file. However, some of the results are wrongFor example, given operations 1.0 + 2.0 = 4.0 2.5 + 2.5 = 5.0 3.0 / 2.0 = 1.0 the method...
more
05/24/21
Java code needed
Java code needed! someone please help me with this code!Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string....
more
05/24/21
C++ Design Pattern Problem
You're given 3 shapes: rectangle, triangle and circle. Your task is to find if one shape is contained in another shape. Define this function as a new operation (e.g. bool isContained()) without...
more
05/22/21
For the function shown below, find each of the following limits. (If an answer does not exist, enter DNE.)
f(x) = 7x, x ≤ 0 x2 + 9, x > 0'(a) lim f(x) = _____ x→0−(b) lim f(x) = _____ x→0+(c) lim f(x) = _____ x→0
05/21/21
CREATE A C# PROGRAM.
Research a rule called "Zeller's Congruence". This rule provides a complex formula that can be used to determine what day of the week any particular date occurred. For example, if the user entered...
more
05/20/21
2D Array Question
There is a 2D-rectangular MxN Terrain. On each square of the terrain, there may or may not be some gold and a Monster. Each monster has a name and damage (a numeric value between 1- 10). Some...
more
05/20/21
I Don't know where to add this array. I keep getting errors. Please help me.
I want to add this: String [] strs = { "Fortune for Sunday","Fortune for Monday","Fortune for Tuesday","Fortune for Wednesday","Fortune for Thursday","Fortune for Friday","Fortune for...
more
05/20/21
Your 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 have everything but just need the fortunes. For example, "Tuesday's child is full of grace.".Please help me add them to my code.Here is the code:using System;class dttimeex57{ static void...
more
Computer Programming English
05/19/21
question about input and output.
Write a function to output patient information that are stored in a file and Write a function to input patient information and store it in a file is there any difference and what does it mean?
05/18/21
Row Sums. Write code for the function printRowSums.
Write code for the function printRowSums. It should print the sum of each row of the matrix (put a single space after each sum).For the matrix shown here:
1 2 3 4 5
6 7 8 9 10
You should print "15...
more
05/17/21
Row sums. Write code for the function printRowSums.
Write code for the function printRowSums. It should print the sum of each row of the matrix (put a single space after each sum).For the matrix shown here:
1 2 3 4 5
6 7 8 9 10
You should print "15...
more
05/17/21
Transpose. Write code for the function transpose.
Write code for the function transpose. It should take the matrix given and produce the transpose by swapping rows and columns.For the matrix shown here:
1 2 3
4 5 6
7 8 9
Your code should...
more
05/17/21
Row Sums. Write code for the function printRowSums.
Write code for the function printRowSums. It should print the sum of each row of the matrix (put a single space after each sum).For the matrix shown here:
1 2 3 4 5
6 7 8 9 10
You should print "15...
more
05/16/21
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.
The 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...For example, September 4, 1984, was a...
more
05/15/21
Use the graph of the function f to decide whether the value of the given quantity exists. If it does, find it. (If an answer does not exist, enter DNE.)
(a) f(0) = ______(b) lim f(x) = ______ x→0 (c) f(3) = ________(d) lim f(x) = _______ x→3
05/14/21
Recursion and Stack Overflow Question
Recursion uses something called the “call stack” where recursive calls to functions are stacked. Explain this using a specific example. When might there be a stack overflow?
05/12/21
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
Computer Programming Computer Science
05/10/21
how to have a loop that both adds to the end of a singly linked list and adding between two existing elements in a singly linked list
could someone please show me an example of how to have a loop that both adds to the end of a singly linked list and adding between two existing elements in a singly linked list in c#.
05/10/21
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
05/10/21
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
05/10/21
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
05/10/21
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
05/10/21
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
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.