Explain how you would implement the same program in pascal

Assignment Help Computer Engineering
Reference no: EM131884535

Problem

Implement a C++ class employee that supports a virtual method print() which prints the name and age of an employee object. Next derive a class manager which supplies its own print() method which, in addition to the employee information, prints the group number for which the manager is responsible (this is an additional field of manager). Also derive another class from employee called part time. The part time class also supplies its own print() which prints how many hours a week the employee works.

- Can you use the print of employee in manager?

- Explain how you would implement the same program in Pascal.

- Compare the object-oriented and the procedual solution in terms of maintainability. What changes are necessary in the two solutions if we need to add a new type of employee?

- In the C++ solution, how would you implement a part time manager? Does your solution allow you to implement this new class using multiple inheritance?

Reference no: EM131884535

Questions Cloud

Prepare the journal entries under the equity method : Prepare the journal entries under the equity method of accounting for C Ltd for the years ending 30th June 2010 and 30th June 2011 to account.
Define class automobile and use window as a member of class : define the class automobile and use window as a member of the class. Explain the proper use of inheritance in terms of the is-a relation.
Write up the loan account and interest expense account : On 1st January 2008 Barrel took out a $15000 loan. The loan was repayable in eight installments of $2100 commencing on 1stApril 2008 and finishing.
Describe enterprise organization levels : Describe enterprise organization levels as seen from a financial accounting perspective.
Explain how you would implement the same program in pascal : Explain how you would implement the same program in Pascal. Compare the object-oriented and the procedual solution in terms of maintainability.
Computing the cost of the merchandise sold : Beginning inventory, purchases, and sales for Product XCX are as follows: Sep. 1 Beginning Inventory 22 units @ $12 5 Sale 15 units 17 Purchase 22 units.
What will be the total amount in given time : If $2, 100 is invested now, $2, 300 two years from now, and $3,000 five years from now at an interest rate of 5% compounded annually.
Hedge against a rise in price of jet fuel using crude oil : How much money will they make on the contract if they are correct in their prediction?
What are the binding policies adopted by the language : Write a short paper on C macros, comparing them with routines. What are the binding policies adopted by the language?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Products would have a fashion product life cycle curve

Which of the following products would have a fashion product life cycle curve?

  What should the systems analyst do

What should the systems analyst do if the supervisory user won't let him or her talk directly to operational users? How can systems analyst deal with situation?

  Prepare a report summarizing your research describe why you

q1. cascading style sheets css a multi-featured specification for html offers designers an expedient powerful method to

  Minimum size of instruction

An imaginary computer has the 16 data registers (R0 to R3), 1024 words in memory, and the 16 different instructions (add, subtract, etc.). Explain the minimum size of the instruction in bits.

  Find out the minimum-cost spanning trees

Find out the shortest paths from S to all the other nodes in the graph using Dijkstra Algorithm.

  Write a thee page paper discuss why hci is important

Write a 3 page paper discuss why HCI (Human computer Interaction) is important and has evolved to ensure that the needs of different kinds of users are taken into account in computer systems.

  Is snort an hids or an nids

What kind of file is Snort output (logging info) stored in? 7. Can you use Snort with network switches? With hubs? 8. What operating system(s) does Snort run on?

  Complete the application development

The final step in the work for the course is to complete the application development and close out the project. Project closure is not the end of the project.

  Develop functional decomposition diagram to show functions

Develop a high-level use case to represent the application as a whole. Develop a functional decomposition diagram to show all of the functions that the system or application will support.

  Company the privileges needed to query

Give every employee in Local Locale Company the privileges needed to query and update the NEWS_ARTICLE table and the CLASSIFIED_AD table. Write out only two commands to accomplish this task. Save your work as a .sql file.

  Explain change management procedure by data flow diagram

Using the data flow diagram explain the change management procedure, which might be used in the large organization concerned with developing software for external clients.

  Define the probability that the contention ends on round

Two CSMA/CD stations are each trying to transmit long (multiframe) files. After each frame is sent, they contend for the channel using the binary exponential backoff algorithm. What is the likely that the contention ends on round , for k What is t..

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