Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using c++ QUESTION 2: (40) Suppose we want to compile a student academic report for a high school learner in grade 12 (matric) A matric
Using c++
QUESTION 2: (40) Suppose we want to compile a student academic report for a high school learner in grade 12 (matric) A matric learner is enrolled for 6 study units (subjects), namely: English, Mathematics, Life Orientation, History, Computer literacy, Geography. The learner has to pass at least four subjects, including English, to complete grade 12. The subject pass mark is 50%. Write a program that prompts the learner to key in their marks for each subject. The program should include the following functions: a. A function studentDetails, that prompts the learner to key in their personal details name, surname, and schoolName. A function getMarks, that prompts the learner to key in a mark for each of the six subjects, and validate the marks. Do not accept marks lower than 0 or higher than 100. b. c. A function calcAverageYearMark, to calculate and display the average of the 6 Subjects. This function should be called just once by main, and should be passed the 6 Subject marks. (6) A function minMax, to find and return the lowest and the highest of the 6 subject marks passed to it as the subject with the lowest mark; d
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started