1,534 Answered Questions for the topic computer science

Computer Science Math Calculus Physics

07/11/20

A tortoise and hare start from rest and have a race. As the race begins, both accelerate forward. The hare accelerates uniformly at a rate of 0.9 m/s2 for 4.5 seconds.

A tortoise and hare start from rest and have a race. As the race begins, both accelerate forward. The hare accelerates uniformly at a rate of 0.9 m/s2 for 4.5 seconds. It then continues at a... more
Computer Science Math Science Physics

07/10/20

A red ball is thrown down with an initial speed of 1 m/s from a height of 27 meters above the ground.

A red ball is thrown down with an initial speed of 1 m/s from a height of 27 meters above the ground. Then, 0.7 seconds after the red ball is thrown, a blue ball is thrown upward with an initial... more
Computer Science General Computer

07/01/20

Explain the following terms Parrallel programming Pipelining

Explain the following terms Parrallel programming Pipelining

07/01/20

Briefly explain the roles of instruction Registers and Program counter

Briefly explain the roles of instruction Registers and Program counter
Computer Science Computer Programming

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 Science

06/30/20

Big O analysis of QuickSort

Using median-of-three pivot for the quicksort implementation determine the running time Big O worst case of quicksort for:a. sorted inputb. reverse-ordered input c. random input ... more

06/29/20

Find number of threads and Processes in a C Program

Hi, how do i find the number of total threads and processes in this C program?Thanks #include <stdio.h>#include <unistd.h>#include <pathread.h>Int main(){ int... 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

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

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

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

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 Science

06/15/20

what's the easiest way to do file compression and multi-dimensional arrays

Computer Science Computer Organization

06/14/20

Computer Organization Question

Write a set of instructions to evaluate the arithmetic expression given below: X= (A * B)/(C – D + E) + F i)       Using General register computer with two address instructions ii)     Using an... 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

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

06/07/20

I need to have a functional code that can do the following requirements. My game is hangman. My question is that I don't what to start.

I need a functional program that has all the requirements:Final Programming Assignment.For the selected game, my program must provide the following features: • Player vs Computer format. • A game... more
Computer Science

06/07/20

Data Structures

Are your familiar with Data Structures?

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 Science

06/05/20

NEED HELP ASAP!!!

Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Also, design a program that creates three instances of... more
Computer Science

06/05/20

NEED HELP ASAP!!!

Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly... 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.