Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

AIN3701 Assignment 2 (DETAILED ANSWERS) 2025 - DISTINCTION GUARANTEED

Document preview thumbnail
Preview 2 out of 9 pages

AIN3701 Assignment 2 (DETAILED ANSWERS) 2025 - DISTINCTION GUARANTEED - DISTINCTION GUARANTEED - DISTINCTION GUARANTEED Answers, guidelines, workings and references ,. Company background SkyHigh Airlines is a rapidly growing domestic airline that provides affordable and reliable flights across South Africa and neighbouring countries. With a focus on customer service and operational efficiency, the airline has gained a strong reputation in the market. SkyHigh Airlines offers flights from Johannesburg to three major destinations:

Content preview

AIN3701
Assignment 2 2025
Unique #:

Due Date: 12 June 2025

Detailed solutions, explanations, workings
and references.

+27 81 278 3372

, QUESTION 1

Question a.


Simple Step-by-Step Guide to Open Your Excel File and Copy the VBA Code
Into It:

How to Open the Bookings File and Add VBA Code

Step 1: Open the Excel File

1. Open Excel on your computer.
2. Click File > Open and browse to the file named:
Bookings_Feb_2024.xlsx
3. Once it opens, click File > Save As and save it as:
StudentNumber_Surname_Q1.xlsm
4. ✅Make sure to choose Excel Macro-Enabled Workbook (*.xlsm) as the file type.




Step 2: Open the VBA Editor

1. Press Alt + F11 on your keyboard. This opens the VBA Editor.
2. In the left panel (Project Explorer), right-click on VBAProject
(YourWorkbookName).
3. Click Insert > Module. A blank code window will appear.



Step 3: Copy and Paste the VBA Code

1. Copy the function and sub-procedure code provided.

Example function (Question 1a):
' Student Number: [Your Student Number]
' Function to calculate ticket revenue based on destination and passenger counts

Function CalculateTicketRevenue(destination As String, numAdults As Integer, numChildren
As Integer) As Double
Const CPT_ADULT As Double = 1800
Const CPT_CHILD As Double = 1350
Const DBN_ADULT As Double = 1500
Const DBN_CHILD As Double = 1125
Const WDH_ADULT As Double = 3500
Const WDH_CHILD As Double = 2625

If destination = "Cape Town" Then


Varsity Cube 2025 +27 81 278 3372

Connected book
 image
Soraya Sedkaoui Automated Data Analytics
Publisher: 2024 ISBN: 9781394325481 Edition: Unknown

Document information

Uploaded on
June 10, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$4.74
Purchased by 15 students

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
VarsityC
4.1
(2905)
Sold
29158
Followers
13262
Items
3392
Last sold
4 hours ago

Reviews from verified buyers




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions