fix the request success info
This commit is contained in:
@@ -151,8 +151,12 @@ When this command is run, and
|
|||||||
- If a driver is found, your program should
|
- If a driver is found, your program should
|
||||||
- print the following information into the output0.txt file:
|
- print the following information into the output0.txt file:
|
||||||
```console
|
```console
|
||||||
We have found the closest driver for you.
|
Ride requested for user Rebecca, looking for an Economy vehicle.
|
||||||
|
Pick Up Location: Williamsburg, Drop Off Location: Statue_of_Liberty.
|
||||||
|
We have found the closest driver Elena(4.7) for you.
|
||||||
|
Elena is now 12.8 miles away from you.
|
||||||
```
|
```
|
||||||
|
Replace *Rebecca* with the user's first name, replace *Economy* with the user's preferred vehicle type, replace *Williamsburg* with the user's pickup location, and replace *Statue_of_Liberty* with the user's drop off location. Replace *Elena* with the driver's first name, replace *4.7* with the driver's rating. Replace *12.8* with the driver's distance from the user.
|
||||||
- print an updated version of drivers.txt into output1.txt,
|
- print an updated version of drivers.txt into output1.txt,
|
||||||
- and print an updated version of users.txt into output2.txt.
|
- and print an updated version of users.txt into output2.txt.
|
||||||
- If a driver can not be found, your program should print the following message into the output0.txt file:
|
- If a driver can not be found, your program should print the following message into the output0.txt file:
|
||||||
|
|||||||
Reference in New Issue
Block a user