🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
Advanced

The Trolley Code

#ethics #programming #philosophy #decision-making

Analyze a complex ethical variation of the Trolley Problem in software engineering.

You are the lead architect for an autonomous vehicle manufacturer. You must code the 'Critical Failure Protocol.' In a scenario where a collision is unavoidable, the car must choose between swerving left (hitting 1 pedestrian who is jaywalking) or swerving right (hitting 2 pedestrians on the sidewalk) or continuing straight (hitting a concrete wall, resulting in a 40% probability of death for the passenger). Define the ethical framework you use (e.g., Utilitarianism, Deontology) and write the pseudocode logic that implements this decision. Justify your choice.