100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

AIN3701 Assignment 2 (DETAILED ANSWERS) 2025 - DISTINCTION GUARANTEED

Rating
2.7
(3)
Sold
15
Pages
9
Grade
A+
Uploaded on
10-06-2025
Written in
2024/2025

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:

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Course

Document information

Uploaded on
June 10, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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
$3.04
Get access to the full document:
Purchased by 15 students

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Reviews from verified buyers

Showing all 3 reviews
5 months ago

5 months ago

5 months ago

2.7

3 reviews

5
1
4
0
3
0
2
1
1
1
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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 AAA School of Advertising
Follow You need to be logged in order to follow users or courses
Sold
28681
Member since
8 year
Number of followers
13258
Documents
3117
Last sold
5 days ago

4.1

2819 reviews

5
1490
4
581
3
392
2
117
1
239

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions