1,475 Answered Questions for the topic computer programming

Computer Programming Java Computer Science

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

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
Computer Programming Java Programming Javascript

07/08/21

Java HW(Need help ASAP)

Write a program to prompt student for their name then test 1 grade, test 2 grade, test 3 grade. Calculate the average grade and print a statement such as:“Student name your grades are:Test1 = ... more
Computer Programming C++ Computer Science Programming

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

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

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

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

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

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

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

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

07/06/21

Slove the task 03 in c++

dynarr.h#ifndef DYNARR_H_INCLUDED#define DYNARR_H_INCLUDEDclass dynArr { private: int *data;int size;public:dynArr();dynArr(int);~dynArr();void setValue(int, int);int getValue(int); };#endif //... more
Computer Programming C++

07/06/21

Please slove it in C++.Task 02.

dynarr.h#ifndef DYNARR_H_INCLUDED#define DYNARR_H_INCLUDEDclass dynArr { private: int *data;int size;public:dynArr();dynArr(int);~dynArr();void setValue(int, int);int getValue(int); };#endif //... more
Computer Programming C++

07/06/21

Slove the problem in c++.slove task01.So that i can copy & paste

dynarr.h #ifndef DYNARR_H_INCLUDED #define DYNARR_H_INCLUDED class dynArr { private: int *data; int size; public: dynArr(); dynArr(int); ~dynArr(); void setValue(int, int); int... more
Computer Programming C++

07/04/21

slove it in c++

Using the new operator, allocate a two dimensional character array. Again the number of rows and columnsare going to be provided by the user as input. All of the rows are the same size. Take... more
Computer Programming C++

07/04/21

slove the problem in c++

Using the new operator, allocate a two dimensional character array. Again the number of rows and columnsare going to be provided by the user as input. All of the rows are the same size. Take... more
Computer Programming

07/03/21

PLEASE SOLVE THE PROBLEM IN PYTHON WITHOUT USING ANY BUILT-IN FUNCTIONS

Suppose you have been hired to develop a musical chair game. In this game there will be 7 participants and all of them will be moving clockwise around a set of 7 chairs organized in a circular... more
Computer Programming C++ Computer Science Programming

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

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

07/01/21

C programming question

write a program to accept any number and print cube of all numbers from 1 to n which are divisible by 3.
Computer Programming C++ Computer Science Programming

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 Programming Java Help Urgent

06/30/21

NEED HELP ASAP!

Create a program to localize medical devices in a hospital and to implement a common fingerprinting localization algorithm called the Nearest Neighbor (NN).Task: create an offline stage of 4 X 4... more
Computer Programming C++ Computer Science Programming

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

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

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

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.