1,550 Answered Questions for the topic computer science

07/07/21

Car Class with Dynamic Memory

What To Code With your Car class from previous code: 1. Rewrite the C string members (make and model) to be dynamic C strings. Make all C strings the length of any passed in C string. NOTE: The... more

07/06/21

C++. Define a function RemoveUpper() that takes a string parameter and returns a string. The returned string is the parameter with all characters except the uppercase letters removed.

Define a function RemoveUpper() that takes a string parameter and returns a string. The returned string is the parameter with all characters except the uppercase letters removed.Ex:... more

07/06/21

C++. Write a function ComputeNum that takes two integer parameters and returns the first parameter minus 5 times the second parameter.

Write a function ComputeNum that takes two integer parameters and returns the first parameter minus 5 times the second parameter.Ex: ComputeNum(4, 9) returns -41.Code:#include <iostream>using... more

07/06/21

C++. Write a function CalculateVal that takes one integer parameter and returns the parameter plus 2.

Write a function CalculateVal that takes one integer parameter and returns the parameter plus 2.Ex: CalculateVal(3) returns 5.Code:#include <iostream>using namespace std;/* Your code goes... more

07/06/21

C++. Define a function RemoveUpper() that takes a string parameter and returns a string. The returned string is the parameter with all characters except the uppercase letters removed.

Define a function RemoveUpper() that takes a string parameter and returns a string. The returned string is the parameter with all characters except the uppercase letters removed.Ex:... more

07/06/21

C++. Define a function ParseStr() that takes a string parameter and returns "Good" if the character at index 3 in the string parameter is a space. Otherwise, the function returns "Bad".

C++. Define a function ParseStr() that takes a string parameter and returns "Good" if the character at index 3 in the string parameter is a space. Otherwise, the function returns "Bad".Ex:... more

07/06/21

C++. Write a function ComputeVal that takes two integer parameters and returns the product of the two parameters minus 8. Ex: ComputeVal(5, 9) returns 37.

C++. Write a function ComputeVal that takes two integer parameters and returns the product of the two parameters minus 8.Ex: ComputeVal(5, 9) returns 37.Code:#include <iostream>using... more
Computer Science C++

07/02/21

C++ please check if it’s correct or not

The assignment is:Write a tiny library and submit it in files AboutDog.h and AboutDog.cpp.This library has the only function: void AboutDog(const std::string & dogName, unsigned int... more

07/01/21

C++. Collection App with structs

Introduction Write in C++ at the Linux command line a collection program that keeps track of a collection of information. You can come up with your own idea of what information to store in the... more

07/01/21

C++. Exercise 1: Basic Car class

Exercise 1: Basic Car class Inside your 'exercise1' directory, put all required files (the carmain1.cpp, your car.cpp and car.h files).Download the carmain1.cpp file. Use this to test your class... more

06/30/21

Write a C++ calculator program that keeps track of a subtotal like real calculators do.

Start by asking the user for an initial number. Inside a loop, asks the user for a mathematical operation and a second number. Do the operation with the first number on the second num- ber. Keep... more
Computer Science C++

06/29/21

C++ please check if it’s correct or not

The assignment is:Write a tiny library and submit it in files AboutDog.h and AboutDog.cpp.This library has the only function: void AboutDog(const std::string & dogName, unsigned int... more

06/28/21

Write a C++ program that takes in a set of daily average temperatures (up to a maximum of 30).

Write a program that takes in a set of daily average temperatures (up to a maximum of 30). Please include source code.Do the following algorithm: Ask the user for a temperature If the user enters a... more

06/28/21

Create a C++ program that uses an array of struct Contact values.

Create a program that uses an array of struct Contact values. Please include source code.What to codeThe Contact struct is defined as follows:Contact has:• name• phoneNumber• emailA PhoneNumber... more

06/28/21

Write in C++ at the Linux command line a collection program that keeps track of a collection of information.

Introduction Write in C++ at the Linux command line a collection program that keeps track of a collection of information. You can come up with your own idea of what information to store in the... more
Computer Science C++

06/27/21

How to make a Fractal tree in C++ using the graphics.h library

I have to make a fractal tree in Turbo C++ using the graphics.h library through an online compiler. I have certain parameters such as the coordinate of the roots, length/width of the tree trunk,... more
Computer Science Java Computer Programming

06/27/21

Question in java language please answer ASAP

interface IResit { int number = 3; char iChar = ‘#’;} interface IShape extends IResit { public void drawShape ( ); // this method supposed to draw shapes with interface data as... more
Computer Science

06/27/21

Python question

Write a program that asks the user for the number of males and the number of females registered in a class using two separate inputs ("Enter number of males:", "Enter number of females:"). The... more
Computer Science Java

06/27/21

java programming language please help ASAP

public abstract class Resit { private int row; private int column; public int[ ][ ] table; public Resit(int r, int c) { row = r; column = c; table = new int[row][column]; } public void hi() {... more
Computer Science

06/25/21

Speedup with multicore processing

A computer with a 32-bit 3.5 gigahertz scalar non-pipelined CPU needs to invert the colors of a 150 KB bitmap image file located in the RAM. To do this, each bit of the image must be complemented... more
Computer Science

06/24/21

Python interpreter question

Complete the code below to produce this output:Enter the value of num_1: 15Enter the value of num_2: 4num_1 + num_2 = 19num_1 - num_2 = 11num_1 * num_2 = 60num_1 // num_2 = 3
Computer Science

06/24/21

Python interpreter question

Assume these variable initializations:num_1 = 5num_2 = 4Write a print statement that will produce this output.num_1 ** num_2 = 625
Computer Science

06/24/21

About load and store in mips

First I want to make sure do you use load when it’s the address or the value that is stored in register ?and I know the are different types of load instructions like lw, lh,lb etc. how can I know... more
Computer Science Computer

06/23/21

Computer Science question

Given two variables iVal and fVal, containing respectively an integer and a float value, write a statement that writes both of their values to standard output in the following format: i=iVal... 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.