Car Rental will rent cars to their customer. They have the potential to rent either petrol, diesel, electric, or hybrid cars.
They have initially 40 cars in their rental pool made up of 50% petrol, 20% diesel, 10% electric and 20% hybrid.
When a car is not rented it is available to the customer to rent.
Once a car is rented the car is assigned to the customer, and removed from the rental pool.
When the car is returned by the customer it is assigned back into the rental pool.
If all 40 cars are rented out the rental function should return a message to the customer saying "Sorry nothing to rent, please try again"
All classes developed should be documented and accompanied by an associated test suite for the classes written. carDealership.py, carDealership_app.py and test_carDealership.py
Fitzwilliam_1 0 Newbie Poster
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt 2,662 "Nothing to see here." Moderator
Fitzwilliam_1 0 Newbie Poster
Fitzwilliam_1 0 Newbie Poster
Fitzwilliam_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.