1,475 Answered Questions for the topic computer programming
Computer Programming
06/20/20
Hello, how can I learn programming in two days
06/16/20
File Compression and multi-dimensional arrays
Compression Algorithm:One method of compressing a file is to recognize repeated digits and replace the runs ofrepetition with a number representing the repetition length. For instance for a line in...
more
06/16/20
File Compression and multi-dimensional arrays
"Need a new c++ code done in Dev-C++ 5.11""Compiler set to configure TDM-GCC 4..9.2 64-bit Release"Scenario (need c++ coding)A simple matrix could be used to store data about images by using 1’s...
more
Computer Programming
06/13/20
ONLINE RETAIL APPLICATION DATABASE PROJECT
Hello,can we meet for a lesson. I would like to get help in a project that I have. My course taught me how SQL works from a book but now hands on so I am struggling to to final project. Here is the...
more
06/10/20
Computer coding
What does this function do? float function(int x) { float result = 0.0; float sign = 1.0 for (int n = 1; n <x;n = n + 2) { result = result + sign / n; } return 4.0 *...
more
06/10/20
Float function (computer coding)
What does this function do? float function(int n) { float result = 1.0; float factor = 1.0 + 1.0 / n for (int i = 0; i <n; ++i) { result = result * factor } return...
more
06/10/20
Computer coding ex question
Refer to the loop starting at line 003. If the function is called with a 2 digit decimal number, how many times will the while loop execute? 001 unsigned int bitCount (int value) { 002 unsigned...
more
06/10/20
Computer coding hw question
What sort of runtime error will occur when this program is run? void countdown () { int i = 100; int n = 5; while (i > 0) { i = i -n; n = n / -1; print (i + n) ;
Divide by...
more
06/07/20
I am having difficulty on why my program cannot be outputted. Can you please tell me where I did wrong. My code is pasted below.
import hsa.Console;import java.awt.*;import java.io.*;import java.util.*;public class HangMan{ static Console c; public static void main (String []args) throws IOException { // Main Method. ...
more
06/07/20
File Compression and multi-dimensional arrays
Scenario (need c++ coding)A simple matrix could be used to store data about images by using 1’s and 0’s to represent darkand light shades of color similar to a bitmap. You will find a file data.txt...
more
06/05/20
Matlab question
a) Write a MATLAB script that fits a straight line and to the data set given below and plots the given data as points(o) and fitted data as a line.d |15.5 33.07 53.39 140.24 301.03...
more
06/05/20
Matlab question
Let "f(x) = x^2 +x - 960"Write a MATLAB script that finds a root of the user-defined function using bisection method and gives the tabulated results in a .txt file.How can I solve this pleae ?
06/05/20
Matlab question NEED FOR HELPPP!!
Write a MATLAB function to solve the system of linear equations given below using matrix division. Make r an input to the function and x will be the output. ⌈ 5 2r r ⌉ { x1 } ...
more
06/05/20
Matlab question for professionals
a) Write a MATLAB script that fits a straight line and to the data set given below and plots the given data as points(o) and fitted data as a line.d |15.5 33.07 53.39 140.24 301.03...
more
06/05/20
Matlab question in complicated way..
Let "f(x) = x^2 +x - 960"Write a MATLAB script that finds a root of the user-defined function using bisection method and gives the tabulated results in a .txt file.How can I solve this pleae ?
Computer Programming Computer Science
06/05/20
NEED HELP ASAP!!!
Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the driver’s speed....
more
Computer Programming Computer Science
06/04/20
NEED HELP ASAP!!!!
Design a modular program that allows the user to enter twowords as separate inputs, one a noun and the other a verb. Then display the following three messages: noun verb . is a simple...
more
06/03/20
File Compression and multi-dimensional arrays
ScenarioA simple matrix could be used to store data about images by using 1’s and 0’s to represent darkand light shades of color similar to a bitmap. You will find a file data.txt under your...
more
05/29/20
Describe the four pillars of object oriented programming
Encapsulation, Inheritance, Abstraction, Polymorphism
Computer Programming Computer Science
05/26/20
Recursive Function Tracing
Consider the following recursive functions.
public static int square(int n) {
if (n == 0) return 0;
return square(n-1) + 2*n - 1;
}
public static int cube(int n) {
if (n == 0) return 0;
...
more
Computer Programming Computer Science
05/26/20
Recursive Method Tracing
Consider the following recursive function.
public static void mystery(int n)
{
if (n == 0 || n == 1) return;
mystery(n-2);
System.out.println(n);
mystery(n-1);
}
Write out the steps of the...
more
05/25/20
I can't make a my character move when I run my javascript (Intellij), what is wrong with my code?
package movement;
import processing.core.PApplet;
import processing.core.PImage;
public class LunasAdventures extends PApplet {
PImage moth;
PImage bg;
public static void...
more
05/21/20
Binary Search - Java
Question :Write a java program to search an element in a sorted list and output the position using binarysearch algorithm. Use separate function search (element, array) to search an element.Format...
more
Computer Programming
05/16/20
Programming sedimentation app
Programming - Sedimentation App 1.1 Problem Statement The figure below shows a lake within which sediment, suspended in the water, rains down and slowly builds up on the lake floor. Obviously the...
more
Computer Programming Programming
05/12/20
program that can put a monsters stats into whatever file the user asks.
C++ program that can put a monsters stats into whatever file the user asks. Also, the user can ask to read in a monsters stats from whatever file they want as well.
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.