Questions: 9 913

Answers by our 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 & 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. 

Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks .


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

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.


Apply Structures and Pointers in C++ to Store & Retrieve Information, Calculate Total, and Average of 10 Students.


LATEST TUTORIALS
APPROVED BY CLIENTS