![]() ![]() You will write two methods of the RepairSchedule class. The following RepairSchedule class represents the use of bays by mechanics repairing cars. There may be other instance variables, constructors, and methods not shown. Mechanics and bays are identified by sequential integer identification numbers that start with 0.Īn individual car repair is represented by the following CarRepair class. A bay is an area of a repair shop in which a car is parked while a mechanic performs a repair. The methods shown and the methods to be written involve the mechanic performing a repair and the bay in which the repair takes place. ![]() The classes used in the question are used to record information about car repairs. This question involves the scheduling of car repairs. Writing significant amounts of code that can be replaced by a call to one of these methods will not receive full credit. In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined in that question. Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN JAVA.Īssume that the classes listed in the Java Quick Reference have been imported where appropriate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |