Write object-oriented Swift code for the following. The unit codes of four IT units are passed into
Question:
Write object-oriented Swift code for the following.
The unit codes of four IT units are passed into a method of a class. The units passed in are as follows (and they are passed in this order too):
- NIT2201
- NIT2113
- NIT3114
- NIT3213
You must write Swift code that will take these four units and print for each unit the following three details:
- The number of Learning Outcomes of that unit
- The number of assessments of that unit
- The number of locations where the unit is offered.
You may search the VU website for these three details of each of the above four units.
Your output must be as follows:
where you will substitute X, Y, Z, A, B, etc. with the real figures for Learning Outcomes, assessments and locations.
You must use a loop in your code. Your code should not just be a set of printing statements that are hard-coded to just print the above four lines. Clearly just setting up a set of printing statements with the required output is not the right way to carry out this work. Looping will be part of the solution to this question.
If your solution is not object-oriented, the majority of marks will be deducted for the answer.
Concepts of Database Management
ISBN: 978-111182591
7th edition
Authors: Philip J. Pratt, Joseph J. Adamski