Amazon Interview Question
Software Engineer in TestsOne of test case :
Continue the registration for a car already occupied, if an occupied car is stuck in the traffic/ some other problems, in that case the person currently own it needs to reserve it for more time. in this case the next person in line waiting for this car should get allotted another car
Base car class
Derived car classes: luxury, middle, economic
Pricing policy class
Customer class: name, address, phone numbers
Payment class: credit cards
Shopping cart:
Bill class: customers --- payment
Reservation class: car, customer, bill
Class Design
- Sadineni.Venkat February 14, 2009-------------
Car class: CardId, Make, Model, Color, 4 door\2 door, Remote key, IsReserved, rental price,
Customer Class: First Name, Last Name, Address, Phone num, ...
Reservation class: CarId, PerSon Name, number of days reserved
Test Cases:
1. Try to reserve a car for more than one person
2. Try to reserve a car which is sold out
3. Verify the check out process. After checking out a particular, you should be able to reserve it for another customer.
4. Try to reserve the same car for different customers in different dates