1,518 Answered Questions for the topic computer science

07/19/21

C++: Create a Dynamic Car Class

You will be using your previous version of the Car class and modifying it to have dynamic memory. previous code:carmain3.cpp: #include <iostream>#include <cstring>#include... more
Computer Science

07/19/21

Explain how colour data is stored for a digital image

Computer Science

07/17/21

Trouble starting a payroll program on Python. How to to force the number to be 0 or positive.

Write a program to calculate gross income and net income for all employees in a company. The user will input how many employees each time this program is executed. Number of employees can be zero,... more
Computer Science Python Programming Coding

07/13/21

Need help trying with nested list problem

HI! I have a list of lists, and within the nested lists are tuples (representative of (x,y) coordinates). I want the nested lists to represent a bin.list_of_list = [[(2,1),(4,2),(3,1)],... more

07/12/21

modify the code so i can submit it without plagiarism

Main.cpp #include "Unsortedtype.h" using namespace std; class StudentInfo { private: int id; std::string name; float cgpa; public: StudentInfo(); ... more
Computer Science Java Computer Programming

07/10/21

Why the output is Error : class interest is public, should be declared in a file named Interest.java?

public class Interest {public static void main(String[] args) {/* Declare the variables. */double principal; // The value of the investment.double rate; // The annual interest rate.double interest;... more
Computer Science Java Computer Programming

07/09/21

I need help with this only problem

Exercise 3.3 Write a program that converts a total number of seconds to hours, minutes, and seconds. It should (1) prompt the user for input, (2) read an integer from the keyboard, (3) calculate... more

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

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.