Skip to content

638gsjw/school-grades-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

school-grades-app

<title>تطبيق مُفضل الشرعبي</title> <style> body { background: #E0F7FA; font-family: Arial, sans-serif; direction: rtl; text-align: center; padding: 20px; } input, button { padding: 10px; margin: 5px; font-size: 16px; border-radius: 8px; } .result { margin-top: 20px; font-weight: bold; color: #01579B; } </style>

تطبيق مُفضل الشرعبي 📱










احسب النتيجة

<script> function calculate() { const values = [ +document.getElementById("quran").value, +document.getElementById("islamic").value, +document.getElementById("arabic").value, +document.getElementById("english").value, +document.getElementById("math").value, +document.getElementById("physics").value, +document.getElementById("chemistry").value, +document.getElementById("bio").value ]; const sum = values.reduce((a, b) => a + b, 0); const avg = sum / 8; let grade = "", stars = ""; if (avg >= 90) { grade = "ممتاز"; stars = "⭐⭐⭐⭐⭐"; } else if (avg >= 80) { grade = "جيد جدًا"; stars = "⭐⭐⭐⭐"; } else if (avg >= 70) { grade = "جيد"; stars = "⭐⭐⭐"; } else if (avg >= 60) { grade = "مقبول"; stars = "⭐⭐"; } else { grade = "راسب"; stars = "⭐"; } const name = document.getElementById("name").value; document.getElementById("output").innerHTML = `📛 الاسم: ${name}
📊 المجموع: ${sum}
📈 المعدل: ${avg}
🏅 التقدير: ${grade}
${stars}
✨ تصميم مُفضل الشرعبي`; } </script>

Releases

No releases published

Packages

 
 
 

Contributors

Languages