2.23 – Student Marks Program Written WITH Validations | Total, Percentage & Division
Автор: Burle Sharma (geecoding)
Загружено: 2026-01-22
Просмотров: 13
Описание:
Welcome to the C Programming – Complete Course (New Series) by Burle Sharma.
In this class (2.23), we write the complete and final version of the student marks program that was given as an assignment in the previous class.
This video focuses on implementing validations practically while solving a real programming problem.
📌 Problem Recap
Write a C program to:
Accept marks of 3 different subjects from the user
Calculate and display:
---Total marks secured
---Percentage of marks obtained
Assume each subject carries 100 marks
Display division based on the following rules:
--- Percentage ≥ 60 → First Division
--- Percentage ≥ 50 → Second Division
--- Percentage ≥ 35 → Third Division
--- Otherwise → Fail
✅ What Is Special in This Video
Unlike earlier versions, this program includes proper input validations, as discussed in Class-22.
🛡️ Validations Implemented
In this class, we carefully handle:
Marks less than 0
Marks greater than 100
Invalid total leading to incorrect percentage
Logical correctness in division calculation
Proper flow control using selection statements
This ensures the program is robust, safe, and logically correct.
🎓 Teaching Approach Used
To maintain clarity and strong fundamentals, the program is explained using:
Step-by-step logic
Clean conditional structure
Proper use of control statements
Clear output formatting
This helps beginners understand how real programs are written, not just how they work.
🧠 Key Learning Outcome
Writing a working program is easy, but writing a validated and logically correct program makes you a good programmer.
#CProgramming #LearnC #BurleSharma #CProgrammingNewSeries
#ControlStatements #StudentMarksProgram #ValidationInC #LogicBuilding#geecoding
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: