586 Answered Questions for the topic C++

C++

03/12/25

Write C++ program that adds positive integer numbers from 1 to 1000 using while/for loop control structure.

First try to understand the question and express it in your own words, next try to solve the question and formulate some math related expressions starting from input-> process--> output... more
C++

01/02/25

What is the difference between a map and an unordered map in C++?

C++ Calculus

10/12/24

Recording having issue

why is recording videos mainly for the month of October either has nothing in it or only imagine with no voice for a few min or some not opening at all?

PP#2 Flowchart Diagram

INSTRUCTIONS BELOW:Programming Assignment #2 Write a program that outputs a downwards facing arrow composed of a rectangle and a right triangle. Arrow dimensions are defined by user specified arrow... more

09/26/23

I have a C++ problem, i am dealing with a server client AES encyrption assignment and I have been tasked with filling in this function stub?

Function stub: // Send a message to the server,using the common format for secure messages,// then take the response fromthe server, decrypt it, and returnit・////// Many of the messages in our... more

07/21/23

c++ skiplist implentation

how to implement a c++ skiplist implemented using a linked list structure, no arrays or vectors allowed for storing nodes

06/11/23

IEEE-754 standard for 32-bit floating point

Using the IEEE-754 standard for 32-bit floating point, what biased exponents and mantissa values as given below represent NaN? (Choose all that apply)  0 and nonzero   0 and 255   0 and 0   255... more

06/11/23

What is the biased exponent in this example, expressed as decimal?

Question 10To find the IEEE-754 SP floating point representation of the binary number 0.0000111, one first shifts thedecimal point to the (left or right) by right, 5 places.  Question 11(Continuing... more

06/11/23

Write the decimal number 29.23 as an unsigned fixed point binary

Write the decimal number 29.23 as an unsigned fixed point binary representation with 5 bits for the integer part and 4 bits for the fractional part. Be sure to round up, if needed, to obtain the... more

05/31/23

What Combinations Apply RISC-V

A nested function calls another function (plot_function with parameter a0) and is also called by another function. Given the code that follows RISCV calling convention, which sets of registers... more

05/31/23

RISC-V Conventions

You are the author of the function F while your friend is the author of the function G. Both F and G are located in the same RISC-V main memory but you and your friend do not know the contents of... more

05/31/23

Order of RISC-V Conventions

Suppose we have the following stack, where the red line is the indicator for sp:  Suppose we now want the stack to contain these additional data items in the following order:We are given the... more
C++

05/25/23

Can you help me with this C++ program?

ABC Chat Time is a booth for you to order different kinds of beverages. To buy a beverage, the customer must first specify the quantity of beverages that he or she wants. Then, the... more

I defined a class ListNode, with few extra definitions added: ListNode_str.h

Re-write this code as a template class, and re-name this file to ListNode.h #pragma once #include<iostream> #include<string> using std::string; class ListNode { string value; //... more

Grab the file arraysWork.cpp.

It will not compile as it has some errors in it. Feel free to remove them when you are working on the code. Your goal is to comment on every single line in the function main except for the return... more

04/15/23

Rewrite the scheduler function in xv6 from the default round robin scheduling algorithm into a priority based one

Hello, I have a programming assignment where I have to rewrite the scheduler function in xv6 from the default round robin scheduling algorithm into a priority based one for five different... more

Define a copy method void copy(const vector* other) and add it/incorporate it into the vector class definition.

Review the entire code. Define a copy method void copy(const vector* other) and add it/incorporate it into the vector class definition (i.e. the file you will submit should have everything our... more
C++

03/02/23

C++ statements question

Given a double variable named areaOfSquare write the necessary code to read in a value into areaOfSquare and print out the length of the side of that square.If any value read in is not valid input,... more
C++

03/02/23

C++ statement question

In C++, given an int variable named callsReceived and another int variable named operatorsOnCall write the necessary code to read values into callsReceived and operatorsOnCall and print out the... more

C++ Array of Bank accounts & Ask user to sort by name, id or balance.

C++ question: I have a BankAccount class that has private member variables, string name, string id, and int balance. I made an array of 5 Bank Account objects that stored different names, bank... more

I need help with this HW assignment: Project 2: Functional Decomposition II - Math Skill Builder!!!

link:file:///home/chronos/u-9e88d7bb79a98dc9072c9451a6bc08c2c1a07960/MyFiles/Downloads/Project%202_%20Functional%20Decomposition%20II%20-%20Math%20Skill%20Builder%20Instructions.pdf

11/01/22

Please change this c++ code into pep9

Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std; int fib(int n){int temp;if (n <= 0)  return 0;else if (n <= 2)  return... more

10/31/22

C++ Programming - Sum of two Numbers

Sum of Two NumbersWrite a program that stores the integers 50 and 100 in variables, and stores the sum of these two in a variable named total.
C++

10/30/22

I need to find out these questions

Define a function OutputValue() that takes one string and one integer parameter and outputs the string that number of times, each followed by a newline. The function does not return any... more

10/30/22

Introduction to C++ Programming

Write pseudocode to create a detailed program of one of your daily regular activities like studying and family time.

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.