Generate ten objects of your class by using arrays,then set all its parameters u
ID: 3615846 • Letter: G
Question
Generate ten objects of your class by using arrays,then set all its parameters using a for loop.print all objects along its attributes in a tabular format(organized using spaces and dashs) as well as
finding the max and min of the attributes for the 10 objects. thank u ,, Generate ten objects of your class by using arrays,then set all its parameters using a for loop.
print all objects along its attributes in a tabular format(organized using spaces and dashs) as well as
finding the max and min of the attributes for the 10 objects. thank u ,,
Explanation / Answer
please rate - thanks #include using namespace std; class Student { private: int rollno, age; public: int getage() { return age; } int getroll() { return rollno; } void setroll(int rl) { rollno=rl; } void setage(int g) { age=g; } }; int main() { Student std[10]; int roll,age,maxage,minage,maxnum,minnum,i; for(int v=0;vRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.