🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
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.