Answer to Question #13352 in C++ for Chad Dylan Cooper
(a) Declare a structure data type named studentType to store the following data about a student: student name, student id, course, year enrolled.
(b) For the individual data types declared in part (a), define a student named newStudent and initialize it with the following data:
Student name : Tan Pei Pei
Student ID : 1111111
Course : Diploma in IT
Year enrolled: 2011
(c) Consider the following declarations:
void print() const;
Answer the following questions:
(i) How many members does class testClass have?
(ii) How many private member does class testClass have?
(iii) How many constructors does class testClass have?
(iv) Write the definition of the member function func so that x is set to 5 and y is set to 50.5.
(v) Write the C++ statement that declare an object e1 of type testClass, and initializes
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.