Reference no: EM132139808
Suppose I am designing a personnel database for a university. The university has three types of personnel: students, staff, and faculty. Here are the characteristics of the three groups:
-All three groups have a name and a social security number, both of which are strings, and a gender field, which is a char.
-Students have a floating p csoint field for gpa and an integer field for year (e.g., 1 for freshman, 2 for sophomore, etc).
-Staff and faculty have a string field for position and a double field for salary.
-Staff have an additional integer field for accrued vacation leave.
-Faculty have an additional rank field indicating their job title (e.g., professor, associate professor, lecturer)
Answer the following questions:
1-Design and draw a class hierarchy for the above objects, based on the given properties. In your class hierarchy place variable names next to each class where you declare them.
2-Which of the above classes should be abstract classes?
3-Should the getter and setter methods for the properties be declared as virtual or non-virtual? Why?
Construct a finite state automata that exactly recognizes
: Suppose that during document indexing we are interested in identifying all dates in the format mm/dd/yyyy.
|
Find the expected value of xrounded
: The random variable X takes on the values 5, 20, 30, and 200 with probabilites 0.60, 0.30, 0.08, and 0.02 respectively.
|
Apply appropriate accounting procedures
: ACCT6003 Financial Accounting Process - discussing with the accountant and remaining partner on accounting regulation and reporting requirements
|
What is the total end-to-end delay to send packet of length
: The transmission rates between the sending host and the switch and between the switch and receiving host are R1 and R2 respectively.
|
Should the getter and setter methods for the properties be
: Design and draw a class hierarchy for the above objects, based on the given properties. In your class hierarchy place variable names next to each class.
|
How many calls of equal_lists will be performed altogether
: How many calls of equal_lists will be performed altogether, including the original call and all recursive calls.
|
Explain the programming paradigm your pseudo-code
: Based on the information provided in the presented problem, identify what is returned by g(f(x),x) if x is the string ‘abcd'.
|
What does alice send in the third message
: What does Alice send in the third message, assum- ing Bob chooses e = 0? What does Alice send in the third message, assuming Bob chooses e = 1?
|
Name a variable that correlates with job satisfaction
: Name a variable that correlates with job satisfaction but we do not have causation.
|