Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following UML diagram modelling an application that allows three types of registration for a conference. Registration, StudentRegistration and GuestRegistration represent standard, student and

Consider the following UML diagram modelling an application that allows three types of registration for a conference. Registration, StudentRegistration and GuestRegistration represent standard, student and guest registrations respectively.
1
Explain the relationship between Person and Registration.
[1]
2
Write the definition (no implementation) of Registration. No pre-processor directives are required.
[5]
3
Write lines of code to create an instance of Registration.
[1]
4
Write the first line of the class definition (classHead) of StudentRegistration.
[1]
5
The cost of a student conference registration is half of what is returned by calculateFee() in Registration. Implement the function calculateFee() in StudentRegistration.
[3]
6
Explain the relationship between Registration and RegistrationList.
[2]
7 Write the first line of the class definition (classHead) of RegistrationList.
[2]
8 The function addRegistration() takes a Registration* as the input parametr. List all possible types of objects that can be added to a RegistrationList object.
[2]
9 Implement the function calculateTotalFee() in RegistrationList, so that it adds and returns the total cost of all registrations in a RegistrationList object.
image text in transcribed

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

More Books

Students also viewed these Databases questions