/** * Write a function that receives marks received by a student in 3 * subjects
ID: 3655430 • Letter: #
Question
/** * Write a function that receives marks received by a student in 3 * subjects. It calculates the average and percentage of these * marks and stores the answers into the memory location pointed by avg and perc pointers. * For example: * * float sub1 = 30; * float sub2 = 35; * float sub3 = 40; * float, avg, perc; * int totMarks = 50; * avgAndPercentage(sub1, sub2, sub3, totMarks, &avg;, &perc;); * * After the above statements, avg has value 35 and perc has value 70. **/ void avgAndPercentage(float sub1, float sub2, float sub3, int totMarks, float* avg, float* perc);Explanation / Answer
c++
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.