1,475 Answered Questions for the topic computer programming

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

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 Programming

04/03/20

Python Programming

Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the driver’s speed.... more
Computer Programming Computer Science Programming

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

03/30/20

Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string.

Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string.Ex: If the input is:n Mondaythe output is:1Ex: If the... more
Computer Programming 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 Programming 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 Programming Math C++ Computer Science

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

03/25/20

What is the best file extension used on logo icons for mobile apps?

Computer Programming C++ Computer Science Programming

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

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

03/11/20

Alogorithms basic fundamentals questions please help me?

The numbers in the table below are the result of executing an algorithm that has one parameter N, a non-negative integer, and produces sequences of integers as outputs. For values of N from 0 to 5,... more
Computer Programming Computer Science

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

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.
Computer Programming Computer Science Computer Engineering

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

03/01/20

Write a class in c++

Write a class definition for an order class for a nightclub that contains a table number, a servers name, and the number of patrons at the table. Include a private static data member for the table... more
Computer Programming Computer Science

03/01/20

Create a class in c++

Define a class named Movie. Include private fields for the title, year, and name of the director. Include three public functions with the prototypes void Movie::setTitle(string); , void... more
Computer Programming Computer Engineering

03/01/20

Write a class in C++

Create a class named Shirt that has the public data members collarsize and sleeveLength. Create a class named Pants that has the public data members waistSize and inSeam. Write a program that... more
Computer Programming Nested Loops ( Computer )

02/27/20

Write a program to print a pattern like

The pattern is like this : * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Computer Programming Computer Science Computer Engineering

02/25/20

Write a C++ program

Suppose you have to develop small software to assist the primary students. Write a program that will help an elementary school student learn multiplication. Use the rand function to produce two... more
Computer Programming Computer Science

02/22/20

How do I write this program into a text file

#include <iostream>#include <fstream>#include <string>#include <cstring>#include <cstdlib>#include <iomanip>using namespace std;// global declarations for... more
Computer Programming C++ Linked List

02/22/20

Why the last value appear in hexadecimal rather than decimal? c++

struct Node{ Node* next; int num;};int main(){ Node* ptr = new Node; ptr->num = 11; ptr->next = NULL; cout << ptr << " "; cout << &ptr->next << " "; cout... more
Computer Programming Computer Science

02/19/20

Which of the following functions are in cstdlib.h? Check all that apply

a) ispunct b) strlen c) toupper d) strcmp e) atol f) atof

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.