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.
Here are some address and elements, join elements with address using double link list:
Address Element Node #
546 80 3
545 20 4
325 60 1
276 40 2
After joining it, delete the element 20 and add new element 50 at 3rd position. Make the final link list after all operations.
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.