233k views
0 votes
I want to display in a pretty format information about all mechanics. For each mechanic list only employee number, name, and position. Using find() method\begin{tabular} \hline \multicolumn{1}c{ TRIP } \\ \hline tripNumber & ID \\ registrationNum & ID \\ tripDate & \\ leg[1. ∗

] \\ \hline \end{tabular} \begin{tabular}l \hline \multicolumn{1}c{ EMPLOYEE } \\ \hline e\# \\ name \\ dob \\ address \\ hireDate \\ position[Driver, Mechanic] \\ 1icense \\ status [Available, On-leave] \\ \hline \end{tabular} make_trip \begin{tabular}l \hline \multicolumn{1}c{ TRUCK } \\ \hline registrationNum capacity weight status ​
\\ \hline \end{tabular} maintain MAINTENACE registrationNum ID maintenancetime maintenanceDate

User Tom Knapen
by
7.5k points

1 Answer

5 votes

Final answer:

To display information about all mechanics in a pretty format, you can use the find() method in a programming language like Python or JavaScript. First, you would need to have a collection or database that stores information about mechanics, including their employee number, name, and position. Using the find() method, you can search for all mechanics in the collection and retrieve their employee number, name, and position. You can then format this information in a visually appealing way, such as by creating a table or using HTML elements like

  • and
User Pandit Biradar
by
8.5k points