Differentiation between arrays and structs


Question1. What is the differentiation between arrays and structs?

Question2. A certain class has 10 students. Each student has name and student number, and marks that were awarded for 4 assignments.

Question3. Write a program which inputs the names, student numbers and 4 marks for each of the 10 students, computes the average mark for each student and then the average for the class as a whole. Display the information of all the students with above average mark. Use struct to store information of each student.

Question4. Write a program which reads all data from the file experiment.txt, containing integers, and displays them on the screen.

Question5. Write detailed notes on Classes and Objects.  Your answer must comprise the following:

(i) Class and object definitions,

(ii) Class declaration,

(iii) Member variables and functions,

(iv) Levels of restriction,

(v) Encapsulation and abstraction,

(vi) Creation of object instances,

(vii) Access to class members.

Question6. What do you understand by the term queue?

Question7. Write the class interface for a node and for a queue using the predefined node in C++.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Differentiation between arrays and structs
Reference No:- TGS05910

Expected delivery within 24 Hours