Hello, I am stuck on a couple of these questions and am taking finals, please he
ID: 3635981 • Letter: H
Question
Hello,I am stuck on a couple of these questions and am taking finals, please help time is of the essence!
Q #1.
Define and implement the overloaded constructors that support the following test function for a Time class. The data members for the Time class are:
• hour - integer number
• minute - integer number
• second - integer number
int main()
{ Time t1(); //t1 will take all default values
Time t2(8, 26, 58); //t2 will take supplied values
Time t3(9); //t3 will take supplied hour, minute and second will take default values
Time t4(11, 50); //t4 will take supplied hour and minute, second will take default value
Time t5 = t2; //t5 will take the same value as t2
//the rest of the code
}
Q #2:
Given the following program description,
• identify the required classes/objects necessary to achieve the program requirements;
• briefly describe any relationships that might exist between your classes; and
• briefly describe the overall hierarchy of your proposed classes.
Program Description - You have been asked to create a program designed to keep track of students enrolled at a certain college. The program must keep track of all students and the department they belong to. A single department can contain any number of students and every student should have a unique ID to differentiate them from all the other students.
Q #3:
Consider the class Bicycle. Given your knowledge of some common components of bicycles
• show a class hierarchy in which the class Bicycle inherits from other classes, which, in turn, can also be inherited from yet other classes;
• discuss inheritance from class Bicycle for other closely related derived classes; and
• discuss the common components of class Bicycle
Please help, they are my last 3 out of one hundred questions and I am FRIED!
Explanation / Answer
Hi I have done the solution for this in my notebook. But the solution is too big , I cannot type it here because very less time is remaining.. So please rate me Lifesaver and I'll share the answer with you through email or cramster inbox. I don't do this generally, but I have no other option here because there's very less time left... you need not worry as I have the solution ready
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.