598 Answered Questions for the topic C++

C++

02/15/22

Largest Two The existing code is trying to call a function printLargestTwo that should take in an array of ints and its size and prints the two largest values from the array. Write that function.

Largest TwoThe existing code is trying to call a function printLargestTwo that should take in an array of ints and its size and prints the two largest values from the array. Write that... more

Student Record Management System using Circular Doubly Link List In C++

SUBJECT: DATA STRUCTURES AND ALGORITHMPROGRAMMING LANGUAGE: C++NOTE:The program must be based on circular doubly linked list in C++ using C++ structures not by C++ classesQUESTION:Make a C++... more

12/08/21

Can I return a string?

#include <Windows.h>#include <iostream>#include <string>using namespace std;int main(){string func1();{string response;cout << "Hello World!" << endl;getline(cin,... more

12/05/21

Banker’s algorith

Allocation. MAXR1 R2 R3 R4. R1 R2 R3 R4T1. 3. 0. 1. 4. 3. 1. 1. 7T2. 2. 2. 1. 0. 3. 2. 1. 1T3. 3. 1. 2 1. 3 3. 2. 1T4. 0. 5. 1. 0. 4.... more

11/29/21

write basic C++ programs using selection control, and repetitions for a given problem

The purpose of this assignment is to write basic C++ programs using selection control, and repetitions for a given problem and demonstrate the implementation of appropriate programming features... more

11/28/21

Computer science c++ vector/void help

An airline uses a computer system to maintain flight sales information. For planning purposes, the airline must know what seats are on the plane, what seats are available, what seats are booked,... more
C++

11/12/21

Computer Science I

#include <iostream> using namespace std; // This function RECEIVES the lower and upper boundaries of a range of whole numbers, and a divisor. // It counts all the numbers within the... more

Why is signed char 0xff = -1?

I don't understand it very well.

program that will read in the quantities and prices items from a file then calculates the total price

Write a C++ program that will read in the quantities and prices items from a file then calculates the total price (quantity * price) for each item and saves it in another file including the... more

program that counts from 1 through 100, and prints “D3” if the number is evenly divisible by 3

Write a C++ program that counts from 1 through 100, and prints “D3” if the number is evenly divisible by 3, “D5” if it’s evenly divisible by 5, “D3&5” if it’s even divisible by three and five,... more

10/18/21

Determine if the following problems exhibit task or data parallelism

Determine if the following problems exhibit task or data parallelism: 1. Using a separate thread to generate a thumbnail for each photo in a collection 2. Transposing a matrix in parallel 3. A... more

10/18/21

Please code in c++. I need help on this one.

 Write a program that prompts users to enter:  o A character to use (any character besides *)o The width of the displayo The height of the display to produce an E shape. The middle horizontal line... more

10/17/21

You must code this in c++. I have Included the full question in description.

Write a program that prompts users to enter: o A character to use (any character besides *)o The width of the displayo The height of the display to produce an E shape. The middle horizontal line... more
C++

10/13/21

last itenration of while loop

im trying to display the last iteration of a while loop outside of the loop itself as in once the while loop executes im trying to grab the last iteration the while loop performed and display it... more

10/07/21

Please help with Java code

How can I define a for loop for the following output:1+2 = 32+3 = 54+5 = 98+9 = 1716+17 = 3332+33 = 6564+65 = 129any help would be very appreciated

QuickSort. Write the quickSortInternal function. Do not use std::algorithms.

Please include source code and make the code that you include bold. Write the quickSortInternal function. Do not use std::algorithms.You need to add your partitionFunc from the Partition Function... more

Partition Function Write the partition function (described in function comment below).

Include source code and please make the code that you add bold. Write the partition function (described in function comment below).Do not use std::algorithms.Make sure that you only work on the... more

MergeSort. Write the mergeSortInternal function. Do not use std::algorithms.

Write the mergeSortInternal function. Do not use std::algorithms.You need to add your mergeFunc from the Merge Function problem. You cannot solve this problem without doing that one... more

C++. Create a program that helps keeping track of song lists. Include code.

This program is an exercise in building, traversing, and destroying linear linked lists. The use of recursion should be included at least once in each assignment to better prepare us for future... more
C++

09/29/21

5.21 LAB: Adjust list by normalizing

When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This adjustment can be done by normalizing to values between 0 and 1, or throwing... more
C++ Coding

09/24/21

Help with do while loop

generate a random number between 5 and 250. This will be the number of values in the third set. Display a label such as "3rd set of random numbers" and the number of values in the set.Using a do... more
C++ Coding

09/24/21

How do I make this while loop display 7 integers per line

const double MAXIMUM2 = 50; i = 0; while (i < MAXIMUM2) { RandNum = rand(); cout << RandNum << ' '; i++; } { cout << endl <<... more

Basic C++ Question

Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service... more

09/12/21

complete the member function ( fdeviation(….)) of class Stats :

#include <iostream>#include <cmath>using namespace std;class Stats{ double mean, deviation; public: /** Function for computing mean of an array of double values */ double... 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.