1,534 Answered Questions for the topic computer science

Computer Science Science

04/14/20

What is the importance of having all computer scientists understand how websites are built and operate?

Explain the importance of having all computer scientists understand how websites are built and operate. 
Computer Science Java Computer Programming

04/13/20

Given the interface please code the zip function

INTERFACE import java.util.function.BiFunction; interface NamedBiFunction extends java.util.function.BiFunction //nested interface that extends from java.util.function.BiFunction { ... more
Computer Science Java Computer Programming

04/13/20

Please implement the following function in Java using a single method chain

This function is called the least element. In this function, the single method chain can return a java.util.Optional<T>. So you must write additional code to convert it to an object of type T... more
Computer Science Computer General Computer C++

04/12/20

Assign numMatches with the number of elements in userValues that equal matchValue.

Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If userValues is {2, 2, 1, 2} and matchValue is 2 , then numMatches should... more
Computer Science Computer C++ Computer Programming

04/12/20

Write a for loop to populate vector userGuesses with NUM_GUESSES integers.

Write a for loop to populate vector userGuesses with NUM_GUESSES integers. Read integers using cin. Ex: If NUM_GUESSES is 3 and user enters 9 5 2, then userGuesses is {9, 5, 2}.#include... more
Computer Science Computer General Computer C++

04/12/20

Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order.

Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that... more
Computer Science Computer General Computer C++

04/12/20

Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd.

Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd.Ex: If the input is: 2 3 4 8 11 -1 (a negative indicates the end), the output is:4The maximum... more
Computer Science Computer General Computer C++

04/12/20

Write a program that first gets a list of integers from input.

Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which... more
Computer Science Computer General Computer C++

04/12/20

Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements.

Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements.(1)... more

04/11/20

AVL Trees - Java Data Structures & Algorithms

Can someone help with this AVL tree deletion?Delete 7,5,9 from the following AVL tree?AVL tree represented as an array(note that null denotes nodes with no values)9, 5, 12, 3, 6, 11, 14, 2, 4,... more
Computer Science

04/10/20

A Stock Market Index is a calculation that gives information about a group of stock

Computer Science

04/09/20

Find the single precision format of -118.375

Need work to explain how to do this

04/09/20

ER Diagrams - relations

The SingLanka Record Bar has decided to store information about musicians who perform on its albums in a database. Consider the following requirements to design a database for the company... more
Computer Science Computer General Computer Java

04/07/20

Computer Science Tree Question

Hello,I am currently attempting to complete a project for my computer science class and we have to implement a ternary tree as a sort of database of different cat objects. I know that my method to... more

04/07/20

Realtional Database vs File Based System

Explain the advantages of RELATIONAL DATABASE MODEL over file based system
Computer Science Computer General Computer C++

04/06/20

Complete the function to replace any period by an exclamation point. Ex: "Hello. I'm Miley. Nice to meet you." becomes

Complete the function to replace any period by an exclamation point. Ex: "Hello. I'm Miley. Nice to meet you." becomes:"Hello! I'm Miley! Nice to meet you!"#include <iostream>#include... more

04/05/20

Write True or False for each of the following statements. (Corecct if fales)

1 If a method does not return a value, the return value type must be static. 2 The expression !(true || true && false || !true) is evaluated to true. 3 Every array has a length that... more

04/05/20

Find and correct the error(s) in each of the following code fragments :

1. The following code should create an integer array and increment all the array elements by 1:int[] a = new int[5]; for( int i=0; i <= a.length; i++ ) ++a;2. The following code should compare... more
Computer Science Computer Architecture

04/04/20

Computer architecture problems

How many bits are required to address a 4M X 16 main memory ifa)    Main memory is byte addressable?  b)    Main memory is word addressable? 2. Suppose that a 16M X 16 main memory is built using... more
Computer Science Math Computer C++

04/04/20

Write a C++ Program that works in this way.

1. Define a C++ function with the name evaluateBook. The function receives as one argument the name of the file to be processed (i.e., the book's file). So that if you pass the... more
Computer Science Math Computer General Computer

04/04/20

I need help fixing my program??

#include <iostream>#include <vector>#include <cstring>#include <string>using namespace std;#define MAX_WORD_LENGTH (255)typedef struct _TSynonym{ char... more

04/04/20

Write a program that replaces words in a sentence.

Write a program that replaces words in a sentence. The input begins with an integer indicating the number of word replacement pairs (original and replacement) that follow. The next line of input... more
Computer Science Career Development

04/03/20

What kind of Career should I pursue in technology?

There are so many categories of technology work how do I choose what is the best fit for me.

04/01/20

Programming question

Till now, there have been no COVID-19 cases identified in the country XYZ. Scientists and researchers there have conducted a research and discovered that, in a street with houses (imagine that 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.