subject
Engineering, 27.01.2020 22:31 zimbabwayjerry

You will be writing a library simulator involving multiple classes. you will write the libraryitem, patron and library classes, and the three classes that inherit from libraryitem (book, album and movie). all data members of each class should be marked as private (a leading underscore in the name). since they're private, if you need to access them from outside the class, you should do so via get or set methods. any get or set methods should be named per the usual convention ("get_" or "set_" followed by the name of the data member). here are descriptions of the three classes: libraryitem: id_code - a unique identifier for a libraryitem - you can assume uniqueness, you don't have to enforce it title - cannot be assumed to be unique location - a libraryitem can be "on_shelf", "on_hold_shelf", or "checked_out" checked_out_by - refers to the patron who has it checked out (if any) requested_by - refers to the patron who has requested it (if any); a libraryitem can only be requested by one patron at a time date_checked_out - when a libraryitem is checked out, this will be set to the current_date of the library init method - takes an id_code, and title; checked_out_by and requested_by should be initialized to none; a new libraryitem's location should be on the shelf get and set methods as needed

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
You know the right answer?
You will be writing a library simulator involving multiple classes. you will write the libraryitem,...
Questions