C Program To Calculate Average and Percentage of Marks Obtained using Pointer
Satish B
https://technotip.com/7962/c-program-to-calculate-average-and-percentage-of-marks-obtained/
Write a function that receives marks received by a student in 3 subjects and returns the average and percentage of these marks. Call this function from main() and print the results in main().
We make use of following formulas: Total = subject_1 + subject_2 + subject_3; Average = Total / 3.0;
we are dividing Total by 3.0 because we have 3 subjects. It represents the number of subjects for which we're calculating the Average.
percentage = Total x 100.0 / Max;
Here Max is the maximum marks(for all the subjects combined) for which the exam was conducted.
C Programming Interview / Viva Q&A List https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=P8iLhG0ManM
20657830 Bytes