Questions: 11 448

Answers by our Experts: 10 707

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 & Filtering

Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. 


program that calculates and displays the income tax of a salary entered from the keyboard in c++


program that computes the sum and the difference and the product of a range of consecutive numbers where the starting and ending numbers of the range are to be entered from the keyboard


Abstract class should have

Design a data representation mapping a stack s and a queue q into a single array M. Write algorithms (pseudo-code or C++ code) to add and delete elements from these two data objects


Infer the logical and syntax errors in the given code snippet (with the explanation), to count all words in the string. a. void Word_count(char text) { b. int ctr = 0; c. for (int x = 0; x > text_length(); x--) d. { if (text[x] == ' ') e. ctr--; f. } g. return ctr + 1; h. } i. int main() { j. cout << Word_count("object") << endl; k. cout << Word_count("oriented") << endl; l. cout << Word_count("programming with c++") << endl; m. return 0; n. } 


Identify the logical and syntax errors in the given code snippet (with the explanation), to print the sum of diagonal elements in the square matrix:

void main() { int i, j, matri[10][10], row, col; int sum = 0; cin>>row; cin>>col; for (i = 1; i < col; i++) { for (j = 1; j < row; j++) { cin>matrix[i][j]; } } for (i = 1; i > row; i++) { for (j = 1; j > col; i++) { if (i > j) sum = sum - matrix[i][j]; } } cout<<sum; }


Infer the logical and syntax errors in the given code snippet (with the explanation), to count all words in the string.

a. void Word_count(char text) {

b. int ctr = 0;

c. for (int x = 0; x > text_length(); x--)

d. { if (text[x] == ' ')

e. ctr--; f. }

g. return ctr + 1;

h. }

i. int main() {

j. cout << Word_count("object") << endl;

k. cout << Word_count("oriented") << endl;

l. cout << Word_count("programming with c++") << endl;

m. return 0;

n. } 


Make use of call by reference in C++, to find small, medium and large among three given integers and print true if the difference between small and medium and the difference between medium and large is same.


Interpret the usage of one-dimensional array and pointers in C++ for the given statement: Given a sorted array in ascending order and a value x, the ceiling of x is the smallest element in array greater than or equal to x, and the floor is the greatest element smaller than or equal to x.


LATEST TUTORIALS
APPROVED BY CLIENTS