top of page
Code Snippets: Smart Wipers
In this section you are seeing three (3) code snippets generated for the smart wipers use case with medium 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 a remote vehicle windshield wiper control system that subscribes to the vehicle hood's open/close state. The system should:
- Turn off the front windshield wipers automatically when the hood is opened.
- Implement a listener function that is triggered when the hood state changes.
- Include the ability to turn on the windshield wipers and then simulate opening the hood to trigger the event. "
Human written code
GenAI model 1 code
GenAI model 2 code
bottom of page
