Code Snippets: Passenger Welcome
In this section you are seeing three (3) code snippets generated for the passenger welcome use case with high prompt difficulty:
​
The human written code, the GenAI model 1 and GenAI model 2 generated code.
​
Please, keep this window open while completing the questionnaire.
Prompt:
" Generate an asynchronous passenger welcome application with the following features:
- Open the left front door.
- Turn on the indoor dome light, but only if it is currently off.
- Raise the seat to position 10, checking the current seat position to avoid redundant adjustments.
- Brew coffee using the vehicle's coffee machine.
- Start the air freshener at maximum speed, ensuring that it is not already at maximum.
- Implement 3-second delays between actions using aio.sleep().
- Ensure that the system performs condition checks before executing each action to avoid unnecessary operations (e.g., don't open the door if it's already open)."