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, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
Answers: 2
question
Engineering, 04.07.2019 19:10
The sum of the normal stresses does not change as the stress state rotates through an angle. a)-trune b)- false
Answers: 2
question
Engineering, 04.07.2019 19:20
Ashielded metal arc-welding operation is accomplished in a work cell by a fitter and a welder. the fitter takes 5.5 min to load components into the welding fixture at the beginning of the work cycle, and 1.5 min to unload the completed weldment at the end of the cycle. the total ength of the weld seams 1200 mm, and the travel speed used by the welder averages 300 mm/min. every 600 mm of seam length, the welding stick must be changed, which takes 0.8 min. while the fitter is working, the welder is idle (resting): and while the welder is working the fitter is idle. (a) determine the average arc-on time as a fraction of the work cycle time. (b) how much improvement in arc-on time would result if the welder used flux-cored arc welding (manually operated), given that the spool of weld wire must be changed every 10 weldments, and it takes the welder 5.0 min to accomplish the change? (c) what are the production rates for these two cases (weldments completed per hour)? attach your work and solutions.
Answers: 1
You know the right answer?
You will be writing a library simulator involving multiple classes. you will write the libraryitem,...
Questions
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
Questions on the website: 13722367