Question: Create the following program using php (JavaScript is not allowed) Create a car rental system where customers rent cars for a given period of time

 Create the following program using php (JavaScript is not allowed) Create

Create the following program using php (JavaScript is not allowed) Create a car rental system where customers rent cars for a given period of time Car-a class for all cars. Holds car information and an array of rents. Implement several types of cars as subclasses o Small car- 4 passengers, Motor 1200, air-conditioner Medium car-4 passengers, Motor 1400, air-conditioner, Speed Control o Large car: 6 passengers, Motor 1600, air-conditioner, speed control, Wi-Fi o Keep the following car information for each car - holds the following fields: car type has insurance papers, car license, car number Customer class: holds first name, last name, id .Rent class (representing the time period when the car is rent): holds startDate and endDate, rent price, In addition to the previous classes, Implement the following interface rentinterface- holds methods addRent($rent) and removeRent($rent). The Rent Class implements this interface Encapsulate all class fields with properties. Override the information about the object from the class in which it is instantiated Write a static class rentingManager with method rentCarcar, $rent) that handles car renting and prints a message whether the operation was successful or not. method for each class to print Now, after writing the code of the previous classes and interface, create an array of different cars Perform the following operations Create an array of cars, in which the array contains different objects of the three types of cars create the objects of the array and fill the objects with suitable data) .Filter the array by small cars and medium ones with a rent price less or equal to 250.00 .Filter the array by all cars with an air conditioner. Return the car numbers of all cars which have a wi-fi service Create the following program using php (JavaScript is not allowed) Create a car rental system where customers rent cars for a given period of time Car-a class for all cars. Holds car information and an array of rents. Implement several types of cars as subclasses o Small car- 4 passengers, Motor 1200, air-conditioner Medium car-4 passengers, Motor 1400, air-conditioner, Speed Control o Large car: 6 passengers, Motor 1600, air-conditioner, speed control, Wi-Fi o Keep the following car information for each car - holds the following fields: car type has insurance papers, car license, car number Customer class: holds first name, last name, id .Rent class (representing the time period when the car is rent): holds startDate and endDate, rent price, In addition to the previous classes, Implement the following interface rentinterface- holds methods addRent($rent) and removeRent($rent). The Rent Class implements this interface Encapsulate all class fields with properties. Override the information about the object from the class in which it is instantiated Write a static class rentingManager with method rentCarcar, $rent) that handles car renting and prints a message whether the operation was successful or not. method for each class to print Now, after writing the code of the previous classes and interface, create an array of different cars Perform the following operations Create an array of cars, in which the array contains different objects of the three types of cars create the objects of the array and fill the objects with suitable data) .Filter the array by small cars and medium ones with a rent price less or equal to 250.00 .Filter the array by all cars with an air conditioner. Return the car numbers of all cars which have a wi-fi service

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!