COS1512
Assignment 2
2023 (762913)
QUESTIONS WITH ANSWERS
, 6/28/2023
COS1512
Assignment 2
2023 (762913)
Questions with answers
, COS1512 Assignment 2 2023 (762913)
E DATE: 3 July 2023
T-OFF DATE: 6 July 2023
TORIAL MATTER: Chapters 4, 5, 6, 8 and 9 of the Study Guide
Chapters 4 (section 4.6), 5 (section 5.5), 6, 8 and 9
(excluding the optional parts of section 9.2) of
Savitch
EIGHT: 30%
RKS: 70
Question 1
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 other function accepts arguments for the number of modules enrolled for
Assignment 2
2023 (762913)
QUESTIONS WITH ANSWERS
, 6/28/2023
COS1512
Assignment 2
2023 (762913)
Questions with answers
, COS1512 Assignment 2 2023 (762913)
E DATE: 3 July 2023
T-OFF DATE: 6 July 2023
TORIAL MATTER: Chapters 4, 5, 6, 8 and 9 of the Study Guide
Chapters 4 (section 4.6), 5 (section 5.5), 6, 8 and 9
(excluding the optional parts of section 9.2) of
Savitch
EIGHT: 30%
RKS: 70
Question 1
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 other function accepts arguments for the number of modules enrolled for