Assignment 3 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
Terms of
the first time and the fee for those modules as arguments (parameters), while theuse
By making use of this document you agree to:
other function accepts arguments for the number of modules enrolled for the first time
Use this document as a guide for learning, comparison and reference purpose,
Terms of use
Not to duplicate, reproduce and/or misrepresent the contents of this document as your own work,
By making use of this document you agree to:
Use this document
Fully accept the consequences
solely as a guide forshould you plagiarise
learning, reference,or and
misuse this document.
comparison purposes,
Ensure originality of your own work, and fully accept the consequences should you plagiarise or misuse this document.
Comply with all relevant standards, guidelines, regulations, and legislation governing academic and written work.
Disclaimer
Great care has been taken in the preparation of this document; however, the contents are provided "as is" without any express or
implied representations or warranties. The author accepts no responsibility or liability for any actions taken based on the
information contained within this document. This document is intended solely for comparison, research, and reference purposes.
Reproduction, resale, or transmission of any part of this document, in any form or by any means, is strictly prohibited.