Should the getter and setter methods for the properties be

Assignment Help Computer Engineering
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?

Reference no: EM132139808

Questions Cloud

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.

Reviews

Write a Review

Computer Engineering Questions & Answers

  One of the issues with the component object model com was

research available test case software. what are some features offered by the majority of the products?discuss the

  Implementing the java application

Write down a Java application which enables a user to enter 10 numbers (double precision) into an array and then sorts and shows the numbers from lowest to highest.

  Information has many facets value confidentiality integrity

information has many facets value confidentiality integrity privacy legality and so on. all information is not the same

  Prove that for all positive real numbers a and b

CSC165H1 Problem Set. Prove the following statements about little-oh, using only the definitions of little-oh and Big-Oh. You may not use any external properties of Big-Oh in this question. Prove that for all positive real numbers a and b, if a

  The origin and history of the sip protocol

Explain, in a couple of paragraphs, the origin and history of the SIP protocol and the H.323 protocol suite. What are the most noticeable characteristics of each. What are some of their cons

  How difficult was the download and installation of player

How difficult was the download and installation of the player? How good is the quality of the audio or video stream?

  Compute the value of n after operating the system

The system gets updates 10 times per second, and thusstores in memory the (integer) number of 0.1 s that have elapsed since the system was turned on.

  Find a maximum-size independent set in g

An independent set of a graph G=(V;E) is a subset V`C= V of vertices such that each edge in E is incident on at most one vertex in V`. The independent-set problem is to find a maximum-size independent set in G.

  Explain the concept of two-pass cross-flow heat exchanger

Use a spreadsheet computer program to determine the effectiveness of a two-pass cross-flow heat exchanger as a function of NTU and Cmin/ Cmax for the case.

  Based on tests of the chevrolet cobalt engineers have

based on tests of the chevrolet cobalt engineers have discovered that miles per gallon in highway driving are normally

  Prepare an html document that describes an ordered list

Prepare and test an HTML document that describes an ordered list with the following contents: The highest level should be the names of your parents.

  What types of a packet should be sent in pgp

What types of a packet should be sent in PGP to provide the following security services: Confidentiality, Message integrity, Authentication and Nonrepudiation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd