Question

In: Computer Science

Assume that the Student class is part of a generalization/specialization hierarchy, with University Person as a...

  1. Assume that the Student class is part of a generalization/specialization hierarchy, with University Person as a general class. What attributes would Student inherit from University Person? What are attributes are unique to the Student class, which all University Persons would not have?

Solutions

Expert Solution

University Person Attributes :-

Variables:-

name : String

address : String

Age : int

phoneNo : int

email : String

Methods:-

getName() : String

getAddress() : String

setAddress() : String

getAge() : int

setAge() : int

-----------------------------------------------------------------------

Student class inherits above university persons attributes .

-----------------------------------------------------------------------

The attributes that are unique to the Student class are given below

Student Attributes :-

Variables:-

numCourse : int

course : String[]

StudentId : int

grades : int[]

yearOfStudy : int

Methods:-

enrollCourse(course : String) : void

payTution( fee:int) : void

dropCourse(course : String) : void

addCourseGrade( course : String , grade:int ) : void

printGrades() : void

getAverageGrade() : double

----------------------------------------------------------------------------

Thank you.

  


Related Solutions

Give an example that explains the generalization versus specialization in object orientated context.
Give an example that explains the generalization versus specialization in object orientated context.
Answer to the following questions. 1.What is Generalization and Specialization 2. What is a Recursive Relationship...
Answer to the following questions. 1.What is Generalization and Specialization 2. What is a Recursive Relationship 3. What is the purpose of a query and What is a stored procedure 4. What is an index  
What is enhanced ER Model? Explain extended ER features: Specialization, Generalization and Aggregation with your clear...
What is enhanced ER Model? Explain extended ER features: Specialization, Generalization and Aggregation with your clear definitions/ideas/differences in your own words and give at least one appropriate example for each one of them.
Let X be the height of a student to be randomly selected at the University. Assume...
Let X be the height of a student to be randomly selected at the University. Assume (for the purpose of modeling) that X has the normal distribution with a mean of 68 inches and a standard deviation of 4.9 inches. a.) What is the probability a randomly selected student is shorter than 65 inches? b.) What is the probability a randomly selected student is taller than 73 inches? c.) What is the probability a randomly selected student's height falls within...
Let X be the height of a student to be randomly selected at the University. Assume...
Let X be the height of a student to be randomly selected at the University. Assume (for the purpose of modeling) that X has the normal distribution with a mean of 68 inches and a standard deviation of 4.9 inches. a.) What is the probability a randomly selected student is shorter than 65 inches? b.) What is the probability a randomly selected student is taller than 73 inches? c.) What is the probability a randomly selected student's height falls within...
A student with an eight​ o'clock class at a university commutes to school by car. She...
A student with an eight​ o'clock class at a university commutes to school by car. She has discovered that along each of two possible routes her traveling time to school​ (including the time to get to​ class) is approximately a normal random variable. If she uses the highway for most of her​ trip,μ=22 minutes and σ=5 minutes. If she drives a longer route over city​ streets, μ=26 minutes and σ=33 minutes. Which route should the student take if she leaves...
Suppose a student organization at the University of Illinois collected data for a study involving class...
Suppose a student organization at the University of Illinois collected data for a study involving class sizes from different departments. A random sample of 11 classes in the business department had an average size of 38.1 students with a sample standard deviation of 10.6 students. A random sample of 12 classes in the engineering department had an average size of 32.6 students with a sample standard deviation of 13.2 students a. Perform a hypothesis test using a = 0.05 to...
3) An academic advisor at a university was studying student class attendance and would like to...
3) An academic advisor at a university was studying student class attendance and would like to know if class attendance depends on school. a) State the Hypothesis to show class attendance depends on school. b) Choose a level of significance Use a = 0.05 for this problem. c) To test the hypothesis, the advisor obtained attendance records for 23 students (6 from engineering, 9 from business, and 8 from arts and sciences) for the fall term. The advisor determines the...
Given the following business scenario, create a Crow’s Foot ERD using a specialization hierarchy if appropriate....
Given the following business scenario, create a Crow’s Foot ERD using a specialization hierarchy if appropriate. Two-Bit Drilling Company keeps information on employees and their insurance dependents. Each employee has an employee number, name, date of hire, and title. If an employee is an inspector, then the date of certification and the renewal date for that certification should also be recorded in the system. For all employees, the Social Security number and dependent names should be kept. All dependents must...
Here I'm using "person" as an abstract superclass or parent class, and "Student" as a derived/child...
Here I'm using "person" as an abstract superclass or parent class, and "Student" as a derived/child class. // File name: Person.h // Person is the base, or parent for chapter11 #pragma once #include <iostream> #include <string> using namespace std; class Person { private:    string fName;    string lName;    int areaCode;    int phone; public:    Person();    Person(string, string);    void setFirst(string);    void setLast(string);    void setPhoneNumber(int, int);    string getFirstlast();    string getLastFirst();    string getPhoneNumber();...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT