586 Answered Questions for the topic C++

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

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

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

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

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

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

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

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

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

03/27/20

recover file that did not download

good morning.i am trying to download a file from yesterday that never loaded on my computer. only the white board did but not what was in the text editor. i really need it. please let me know if... more

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

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

Printing Problem in C programming

1.Question For the following code: int a = -1; int b = a * 5; printf("a is %d, and b is %d. ", a, b); What is the output?2.Question int x = -1; int y = 3; x= x + Y; printf("x - y is %d. ", x -... more

What does g(-2, 5) evaluate to?

What does g(-2, 5) evaluate to? int g (int x, int y) { x= x + y; int z = 2 * x + y; return z; }

What is this answer help me for this C FUNCTIONS answer?

Questions 1:- What does myFunction(5) evaluate to? int myFunction(int n) { int x = n * 2; int y = (x + 1) % 3; return y - x;}Questions 2:- What does g(3,-10) evaluate to? int z = 2 * x - y; return z; more
C++

02/24/20

create a very particular calculator that works with 3 integer numbers at a time rather than the usual 2 in regular calculators.

1. So, first, ask the user to enter the desired operation (use cin) and store the value in a variable named operation. The user input will consist of a single letter or symbol. Entering: a)... more

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

12/04/19

Write a program that allocates an array large enough to hold a ... (continues in description)

(continued from title) ...user-defined number of test scores. Once all the scores are entered, the array should be passed to a function that sorts them in ascending order. Another function should... more

12/02/19

Modify your inventory management system created in below to use vectors and iterators.

//*This program to assist a user to input the inventory information management//into a file that has created from the program itself only once and the data will be saved automatically#include... more
C++

11/30/19

What code i use?? C++

Imagine you own company and you want to develop an electronic system for your customers to browse inventory and purchase items you have in stock. Your inventory is kept in a text file and may... more

10/26/19

How to design a function that will let only the minimum elements be at the bottom? C++

Write the body of the user function below that changes a stack so that all occurrences of the smallest item are at the bottom of the stack, while the order of the other items remains the same. For... more

10/16/19

Im not sure how to do this but it would be nice to get some help. C++ language

WRITE AN INTERACTIVE PROGRAMthat allows the user to enter (at least two)....UP-TO 15 vectors that are to be added........display the resultant on the screen
C++

10/11/19

What is C++11 Move Semantics?

C++

10/10/19

Why should C++ programmers minimize use of operator new?

Why do C++ programmers recommend minimizing the use of operator new? Isn't operator new the C++ way of allocating dynamic memory for C++ objects on the heap; in which case, why minimize its usage?... 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.