fix the request success info

This commit is contained in:
Jidong Xiao
2023-09-27 19:58:52 -04:00
parent f52ca853da
commit 9fecc1b5d9

View File

@@ -151,8 +151,12 @@ When this command is run, and
- If a driver is found, your program should
- print the following information into the output0.txt file:
```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,
- 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: