77 902
Assignments Done
Successfully Done
In August 2019

Answer to Question #13352 in C++ for Chad Dylan Cooper

Question #13352
(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:

class testClass

int x;
float y;

void func();
void print() const;
testClass(int, double);


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
Expert's answer
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.

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions