Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

=+1 Is the decision fair to employees?

Answered: 1 week ago