1,475 Answered Questions for the topic computer programming
Computer Programming
11/08/19
What makes the internet so exciting for software developers? In other words, what capabilities has the internet provided that may have not been there before?
Computer Programming Computer Science
11/04/19
Write a function quartersToDollars which takes quarters of type int as an argument and return the equivalent number of dollars as double.
The prototype of the function is double quartersToDollars(int)For ex if you pass 4 as an argument the method should return 1.0 and if you pass 7 as an argument the method should return 1.75...
more
Computer Programming Computer Science
11/03/19
Write a function timesTenthat returns a value that is ten times the value of the parameter passed to it. The prototype of the function is shown below.double timesTen(double);
Output:Enter a number: 12.34The value of ten times of 12.34 is 123.4
Computer Programming Computer Science
11/03/19
Write a function that calculates the first 50 prime numbersYou can do this program with two functions
1) bool isPrime(int number)2) void printPrimeNumbers(int numberOfPrimes)
Computer Programming Computer Science
11/03/19
Write a function timesTenthat returns a value that is ten times the value of the parameter passed to it. The prototype of the function is shown below.double timesTen(double);
10/24/19
I can anyone help me understanding this problem
Let F and G be sequences which satisfy the joint recursion:𝐹𝑛+1 = 𝑎𝐹𝑛 + 𝑏𝐺𝑛𝐺𝑛+1 = 𝑐𝐹𝑛 + 𝑑𝐺𝑛Where a, b, c, and d are non-zero constants. Find recursions for F and G individually.
10/22/19
Creating An Air Pollution Index Reader in Ruby (Straight Forward Question)
I got stuck halfway with this question, im unable to post the image because im required to get 10 reputation points here lol. So i literally recreated the whole question here. There were no files...
more
Computer Programming Computer Science
10/19/19
How do I program this problem?
Write a program to read 10 integers from an input file, “num.txt”, and output the average, minimum, and maximum of those numbers to an output file “out.txt”. Also make sure to test for the...
more
Find a function called temp of seawater with latitude (as a number in the interval [0, 90]) and depth?
Just as the atmosphere may be divided into layers characterized by how the temperature changes as altitude increases, the oceans may be divided into zones characterized by how the temperature...
more
10/14/19
Recursive function in Pascal for division of numbers
Write a Pascal code which, given two integers, divides them (integer division) using only substraction. Use recursion.
Computer Programming
10/11/19
I stick with this question to write a code if you help me I'm happy
Light travels at 3 × 108 meters per second. A light-year is the distance a light beam travels in one year.Write a program that calculates and displays the value of a light-year.Useful...
more
Computer Programming Python
10/11/19
How does one set about learning how to use a python3 module
I have recently started to learn python and i have fine understanding of the python 3 syntax. I wanted to start learning more about numpy ,scipy tenserflow. I have tried reading the documentation...
more
10/04/19
How do I properly fill in and create a While Loop Flowchart and Pseudo code for this? I also need to perform 3 desk checks, details below...
"Farmer Pete’s pigs and sheep are all intermingled. He wants to be able to determine how many pigs and sheep he has by just walking out and counting them one at a time. He also needs to know what...
more
10/03/19
Java Programming
Hi, I'm new to Java. I've been working on this question, wrote the code and checked the results with some examples and it seems to be doing fine. I would be glad if any of the tutors can check the...
more
Computer Programming C++
10/02/19
Since C++ is an old language why it is still taught in universities and colleges?
Since C++ is an old language why it is still taught in universities and colleges?
10/01/19
Java Switch Case
Why is the output of the code 14, not 8 : alpha=3+5=8?public class Application4{public static void main(String[] args) {int alpha=3;int beta=5;switch (beta){case 3:alpha=alpha+3;case...
more
Computer Programming Computer Science
09/28/19
how do I find the total cost of four years’ worthof tuition after the tenth year (11thto 14thyear).
#include <iostream>#include <iomanip>using namespace std;int main(){ double initialTuition = 10000; double theRate = 0.05; double startOfFourYearTuition = initialTuition; ...
more
09/24/19
I need a good explanation for this problem please
We’ll call a set of numbers un-average if the average of any two numbers in the set is not in the set. So {1, 3, 6, 7, 10} is un-average, but {1, 3, 6, 7, 9} is not. What is the largest set of...
more
09/23/19
anyone can help me with this problem with some explanation
We’ll call a set of numbers un-average if the average of any two numbers in the set is not in the set. So {1, 3, 6, 7, 10} is un-average, but {1, 3, 6, 7, 9} is not. What is the largest set of...
more
Computer Programming Computer Science
09/20/19
How do I get the company name to show all of it?
My output:Enter the name of the companyEnter shares of stockEnter purchase priceEnter sale price Company: "Still"Expected Output (should look like)Enter the name of the companyEnter sale price...
more
Find the next two terms of sequence
U0 = 1U1 =3And Un is defined by Un+2 = 2 * Un+1 + 3 * UnFind the next two terms
Computer Programming
09/12/19
program that can change all string input into A except the middle input
Example:Input: bears Input: moneyOutput: AAaAA Output: AAnAAJAVASCRIPT please help me!
Computer Programming Math
09/02/19
Prove that every convergent sequence is bounded. Is converse true? Justify by giving an example
08/27/19
In how many ways “ n ” toys can be distributed among 3 friends so that there is not more than one winner and all of them contain at least one toy?
In how many ways "n" toys can be distributed among 3 friends so that there is not more than one winner and all of them contain at least one toy?Explanation:For n=5 , We can distribute in the...
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.