C++ Answers

Questions answered by Experts: 9 913

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Create a programm with function( or functions) Write a digitCount function that gets a positive integer and returns the number of its digits. The program ends when the user presses the ESC key.

Create program with one-dimension array Given an array of numbers. Find the value of the minimum element. If there are more than one element, then determine how many of them.

Create a c++ quiz program, in this program it has a 10 questions that the user will answer. The program has the following functions:




A. It will show the message (Correct) if the the answer is correct and (Wrong) if the answer is wrong




B. It can compute the total score




C. If the user Failed in the quiz it will ask the user if he wants to retake the quiz. ( 6 is the passing rate)




C1.1If he select Yes he will take the quiz again.




C1.2. If he select No the program will automatically closed.




Extra 10 points: use system(“clear”) to clear the the previous data in the screenx

Write a program to merge three sorted(ascending) arrays, A1, A2 and A3 and store results back in these arrays. You are required to place results (after sorting) in A3, A2 and A1 in ascending order, i.e., A3 contains smallest set of numbers then A2 and then A3. Take user input for each array of size 5.


You are required to write menu driven C++ program for matrix operations. You will input matrices from


the user depending on the operation. Your program should support following operations.


1. Addition of matrices


2. Multiplication of matrices


3. Norm of matrix (square root of sum of squares of elements in a matrix)


4. Inverse of the matrix

Explain friend function


Can someone pls explain how this code works.. Thank youu..


#include <iostream>

#include <string>

using namespace std;

int main() {

  string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};

  for(int i = 0; i < 4; i++) {

      cout << i << ": " << cars[i] << "\n";

  }

  return 0;

}


Create a C Language program that will compute and display the following:


Sample Output

EMPLOYEE NUMBER :

EMPLOYEE NAME :

BASIC SALARY :

OVERTIME PAY :

ALLOWANCE :

SSS :

PAG-IBIG :

WITHHOLDING TAX :

GROSS PAY :

TOTAL DEDUCTION :

NET PAY :

*compute the GROSS PAY, TOTAL DEDUCTION and NET PAY


Create a c++ quiz program,the program is about looping, in this program it has a 10 questions that the user will answer. The program has the following functions:



A. It will show the message (Correct) if the the answer is correct and (Wrong) if the answer is wrong



B. It can compute the total score



C. If the user Failed in the quiz it will ask the user if he wants to retake the quiz. ( 6 is the passing rate)



C1.1If he select Yes he will take the quiz again.



C1.2. If he select No the program will automatically closed.



Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the

price to -1. When a user specifies a seat (11 = first row first col (shown in bold on seating plan)), make

sure it is valid and available. When a user specifies a price, find any seat with that price. User should

enter -99 to exit.


LATEST TUTORIALS
APPROVED BY CLIENTS