Have two login type. First login is person login and second login is company login You can look DATA relations and Class diagrms.
You must set database. Used MySql database to this program. Set database. use the sql query: rent_a_car.sql
Whether you are a customer or a company. Login to the system. If you don't have one, register quickly.
List all cars been rental on system. Also you can detail search and you can rental to the selected car. if you do wrong rental car, you can cancel the rental. But you have 1 day do cancel to rental cars.
You are a company and you want rental the your cars. Now you do register your cars to system. And show your car for customers. They can rent your cars.
System make control when customer rent to cars. Has anyone rented it before on the date you chose? Or selected date between the dates by the company when you renting ? 1 day rule is checked before the reserved is canceled