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
Class notes

Data Analysis and Automation (Assignment 2, 2024 – UNISA) – Complete VBA Coding Solution and Theoretical Questions

Rating
-
Sold
-
Pages
7
Uploaded on
12-06-2025
Written in
2024/2025

This document provides a complete solution for AIN3701 Assignment 2 (2024), including both the VBA coding task and the written theoretical responses. The VBA code calculates the income tax payable based on an employee’s annual salary and age, using SARS 2024 tax brackets and rebates. The theoretical sections address the benefits of functions in VBA, advantages of task automation, and potential risks in VBA

Show more Read less
Institution
Course

Content preview

[Date]




AIN3701 Assignment
2 2024 (592338) -
DUE 12 July 2024
QUESTIONS AND ANSWERS

, AIN3701 Assignment 2 2024 (592338) - DUE 12 July 2024

AIN3701 – Data analysis and automation Assignment 2 – 2024 Unique
number: 592338 Deadline: 12 July 2024, at 23:00
Ms Jansen (financial director) once again called you to her office for some
assistance. One of the employees of Ikhishi Likagogo called the manager of
the Pay Office (reporting to Ms Jansen) to enquire how much tax he/she
needs to pay for the current year. The Pay Office manager used the tax tables
provided by the South African Revenue Services (SARS) to assist the
employee. On average, the Pay Office manager gets up to five calls every day
from employees asking this question. Ms Jansen provides you with the
following spreadsheet (as attached): You will notice in column A that there are
different tax brackets. Columns B and C put these values in different columns.
Then you will see a base amount in column D with a percentage (%) in
column E. Let me quickly explain to you how this work. Let’s say your yearly
salary is R550 000. As the salary is between R512 801 and R673 000 the
base tax amount will be R115 762 plus 36% of the amount above R512 801.
Therefore, the tax will be: (R550 000 – R512 801) x 36% + R115 762 = R129
154. The Income Tax Act allows each natural person to claim a tax rebate.
Everyone can claim a primary rebate of R17 235. After the age of 65 years,
you can claim an additional secondary rebate of R9 444. Then after 75 years
old, an additional tertiary rebate can be claimed of R3 145. Please note that
this is applicable to the 2024 tax year. The solution should also take the age
of the taxpayer into consideration. Open Rubric lOMoARcPSD| For example,
let’s say you are 45 years old. You would then be able to claim a primary
rebate against the above calculated tax. Therefore, the tax payable by you for
the 2024 tax year is (if your salary is R550 000) is: R129 154 – R17 235 =
R111 919. Ms Jansen asked you to create a button to request the employee’s
salary as well as the employee's age (in the “Taxtables” worksheet). The
calculated result should display via a message box. REQUIRED: Marks
(a) Please download the attached Excel file called Assignment_. Perform all
coding in this workbook. When done, save the workbook as
yourstudentnumber_Surname_A (macro enabled workbook), for example
_VanStaden_A. Code the solution to the problem as required in the e-mail
from Ms Jansen by making use of Visual Basic for Applications (VBA). Make
sure your coding complies to coding best practices. No marks will be awarded
for coding functions and commands not covered in AIN2601 and AIN3701.

Written for

Course

Document information

Uploaded on
June 12, 2025
Number of pages
7
Written in
2024/2025
Type
Class notes
Professor(s)
Van staden
Contains
All classes

Subjects

$8.99
Get access to the full document:

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

Get to know the seller
Seller avatar
TheAStudentMind

Get to know the seller

Seller avatar
TheAStudentMind Chamberlain School Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
11 months
Number of followers
0
Documents
241
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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 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