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

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...
Part I Each student individually is required to present a case in the class on an...
Part I Each student individually is required to present a case in the class on an eCommerce website from UAE. Questions: Identify the business model used by your website: Ex: The site generates income based on the sale of specific classified ads. This corresponds to the Advertising model. What do you like about the site? What do you dislike about it? Student responses will vary. What are some of the risks and limitations of using this site? Examples of risks:...
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();...
Suppose a university advertises that its average class size is 30 or less. A student organization...
Suppose a university advertises that its average class size is 30 or less. A student organization is concerned that budget cuts have led to increased class sizes and would like to test this claim. A random sample of 39 classes was​ selected, and the average class size was found to be 32.8 students. Assume that the standard deviation for class size at the college is 7 students. Using alpha equals 0.05​, complete parts a and b below. a. Does the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT