62 565
Assignments Done
99%
Successfully Done
In June 2018

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
{

private:
int x;
float y;

public:
void func();
void print() const;
testClass();
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions