1,518 Answered Questions for the topic computer science

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
Computer Science

04/01/20

two's complement

plz help me i have spent hours trying to figure this out.1. Solving 1110 – 1110 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and... more
Computer Science Python Coding

03/31/20

Counting strings in positional arguments python (order cost calculator problem)

The goal is to calculate the cost of a order at a pizza shop. For example:cost([ ], ["pepperoni"], ["ham", "anchovy], drinks = ["small"])should calculate the price of one plain pizza, one pizza... more
Computer Science

03/31/20

Write a code segment that will store a dinner selection in option1 based on the values of rsvp and selection. The intended behavior of the code segment is described below.

Write a code segment that will store a dinner selection in option1 based on the values ofrsvp and selection. The intended behavior of the code segment is described below.If rsvp is true, the code... more
Computer Science Math Computer General Computer

03/30/20

Write a program that removes all spaces from the given input.

Write a program that removes all spaces from the given input.Ex: If the input is:Hello my name is John.the output is:HellomynameisJohn.Your program must define and call the following function. The... more
Computer Science Math Computer C++

03/29/20

Write a program that removes all spaces from the given input.Your program must define and call the following function. The function should return a string representing the input string without spaces.

Write a program that removes all spaces from the given input.Ex: If the input is:Hello my name is John.the output is:HellomynameisJohn.Your program must define and call the following function. The... more
Computer Science Math Computer C++

03/29/20

Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise.

A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes... more
Computer Science Math C++ Computer Programming

03/29/20

Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).

Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).#include <iostream>using namespace std;// Function returns... more

03/23/20

Please write a C++ program on Fibonacci sequence

Numerical analysisThe Fibonacci Sequence is 0, 1, 1, 2, 3, 5, 8, 13,........: the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms:Fib[n] = Fib[n-1] +... more
Computer Science Computer C++ Computer Programming

03/19/20

Please write a c++ code for the following conversion

CONVERSIONWrite and Test a C++ development coded program to display a table of miles converted to kilometers. The output should be a table of miles and their equivalent kilometers.The miles should... more
Computer Science Computer Programming

03/02/20

Write a class with constructors and destructors functions.

A point in a two-dimensional plane having coordinate as (x,y), can be represented by a class whose private data members are x and y. Write the constructor and destructor functions of the class. The... more

03/02/20

Constructors and destructors

Write a program to show that, the constructor and destructor functions of a globally declared object are the first and last functions, respectively to be called in a program.

03/02/20

Constructors with overloading and with default parameters

Write a program to show that constructors follow the property of function overloading as well as default parameter. Also, show that in case of constructor also, default parameter may create problem... 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.