2 2025
Unique Number:
Due date: 4 August 2025
Question 1
Write a program that asks a user to enter the size of a dynamic array that stores exam
marks obtained by students. Create the dynamic array and a loop that allows the user
to enter an exam mark into each array element. Loop through the array, find the
average mark for the exam and output it. Delete the memory allocated to your
dynamic array before exiting your program.
Question 2
Write a program to determine the tuition fees for a student. The program should use
two overloaded functions, each named calcFees, to determine the tuition fees for a
student. Students who repeat a module pay a different fee for the modules which are
repeated. The program should first ask if the student repeats any modules. If the
student repeats, the program should ask for the number of modules which are
repeated.
One of the overloaded functions should accept the number of modules enrolled for
the first time and the fee for those modules as arguments (parameters), while the
DISCLAIMER & TERMS OF USE
Educational Aid: These study notes are intended to be used as educational resources and should not be seen as a
replacement for individual research, critical analysis, or professional consultation. Students are encouraged to perform
their own research and seek advice from their instructors or academic advisors for specific assignment guidelines.
Personal Responsibility: While every effort has been made to ensure the accuracy and reliability of the information in
these study notes, the seller does not guarantee the completeness or correctness of all content. The buyer is
responsible for verifying the accuracy of the information and exercising their own judgment when applying it to their
assignments.
Academic Integrity: It is essential for students to maintain academic integrity and follow their institution's policies
regarding plagiarism, citation, and referencing. These study notes should be used as learning tools and sources of
inspiration. Any direct reproduction of the content without proper citation and acknowledgment may be considered
academic misconduct.
Limited Liability: The seller shall not be liable for any direct or indirect damages, losses, or consequences arising from
the use of these notes. This includes, but is not limited to, poor academic performance, penalties, or any other negative
consequences resulting from the application or misuse of the information provided.
, For additional support +27 81 278 3372
QUESTION 1
Write a program that asks a user to enter the size of a dynamic array that stores exam marks
obtained by students. Create the dynamic array and a loop that allows the user to enter an exam
mark into each array element. Loop through the array, find the average mark for the exam and
output it. Delete the memory allocated to your dynamic array before exiting your program.
QUESTION 2