1,486 Answered Questions for the topic computer programming

Computer Programming Computer Science

07/01/20

Give four reason for the account of the use Input and output modules instead of connecting peripheral directly into the system bus

Give four reason for the account of the use Input and output modules instead of connecting peripheral directly into the system bus
Computer Programming

06/30/20

How to create a variable on sage?

Create a variable called “weights”. This variable will be a list of lists. The “zeroth” list will be a list of all the weights from node zero to all the other nodes. The “first” list will be a list... more

06/23/20

Design a class template, Collection, that stores a collection of Objects (in an array), along with the current size of the collection.

Provide public functions isEmpty, makeEmpty, insert, remove, and contains.contains(x) returns true if and only if an Object that is equal to x ispresent in the collection.

06/23/20

Rehashing requires recomputing the hash function for all items in the hash table. Read more.....

Since computing the hash function is expensive, supposeobjects provide a hash member function of their own, and each objectstores the result in an additional data member the rst time the... more

06/22/20

Any help please.

Define a Rectangle class that provides getLength and getWidth. Usingthe findMax routines in implementation, write a main that creates an arrayof Rectangle and finds the largest Rectangle first on... more

06/22/20

Using the quicksort implementation, determine the running time of quicksort for random input, sorted input and reverse-order input.

This is the implementation.template <typename Comparable>void SORT( vector<Comparable> & items ) { if( items.size( ) > 1 ) { vector<Comparable> smaller;... more
Computer Programming Java Computer Science Programming

06/22/20

Java Classes & Objects

How do we calculate the average marks of s, s1, s2 & s3class Test{ public static void main(String args[]){ Student s; s = new... more
Computer Programming

06/21/20

Write a for loop that displays the following set of numbers. allow the user to enter the start number, the end number and the step value in python 0, 10, 20, 30, 40, 50 . . . 1000

Write a for loop that displays the following set of numbers. allow the user to enter the start number, the end number and the step value in python0, 10, 20, 30, 40, 50 . . . 1000Expert Answer
Computer Programming

06/20/20

Hello, how can I learn programming in two days

Computer Programming C++ Programming

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
Computer Programming Computer C++ Computer Science

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
Computer Programming Computer Science Engineering Coding

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
Computer Programming Computer Science Engineering Coding

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
Computer Programming Computer Engineering Engineering Coding

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
Computer Programming Java Computer Science Coding

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
Computer Programming C++ Computer Science Programming

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
Computer Programming Computer Matlab Programming

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
Computer Programming Computer Matlab Programming

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 ?
Computer Programming Computer Matlab Programming

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
Computer Programming Computer Matlab Programming

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
Computer Programming Matlab Programming

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

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.