Design and draw a class hierarchy for the objects

Assignment Help Computer Engineering
Reference no: EM132141204

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: EM132141204

Questions Cloud

Period and cash dividends : What is the major accounting difference between interest incurred during a period and cash dividends declared during the same period?
What is the total distance that the disk arm moves : What is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?
Dealership financing option : What should be the per-annum interest rate that the bank should charge so that it is equivalent to the dealership financing option?
Semi-annual compounding : Suppose instead that the loan interest rate is 6% p.a. semi-annual compounding. How much money will he need?
Design and draw a class hierarchy for the objects : 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 .
Write the code for sizeis for the class : Suppose we decide to add a new operation to our Stack ADT called sizeIs, which returns avalue of primitive type int equal to the number of items on stack.
How large can f be for the entire list to be sorted : How large can f(n) be for the entire list to be sorted in O(n) time? Please help with these three questions. do not post unrelated answer.
Indicate the sequence of tracks visited and the total head : Suppose that the head of a disk with 256 tracks, numbered 0 to 255, is currently serving a request at track 58.
What is the yield to maturity : What is the yield to maturity? Then assuming that periodic cash flows are reinvested at 10% and the market interest rates remain the same for the entire 4 years

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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