Programming For Analytics CA
Programming For Analytics CA
August 2024
CA Brief
Assignment Details
Item Description1
Module Title: Programming for Analytics
Module Code: B9BA100
Module Lecturer (s): Muhammad Alli, Eugene O’Regan, Muhammad Asad
Programme/Cohort: MSc in Data Analytics September Intake
Method of Assessment: Assignment
Percentage (%) Weighting: 50%
MIMLOs being assessed: 2, 4, 5
Assessment Number: 1
Individual/Group: Individual
Issue Date: 25/10/2024
Submission Date: 10/11/2024
Feedback Date: 22/11/2024
Feedback Strategy: Moodle
Assignment Task
You are NOT allowed to use AI for this assignment.
All questions must be attempted.
The assignment consists of 6 questions. All questions must be attempted. You are required to
submit your answers as a single word document. Python code must be submitted into the word
document. It must be clearly marked which code is the answer to which question or question
part. Outputs from the code should be made into comments at the end of the code.
1. Write a program that mimics the behavior of a jukebox. The user can enter a song
number. If the song number is invalid (negative or out of range), an appropriate error
message is printed and the user re-inputs a valid choice.
Once a valid choice is made the following details are shown
a. Track number
b. Name of track and artist
c. Duration of song and minutes and seconds (this will be stored in seconds only, so
you may have to calculate the duration for display purposes).
(10 Marks)
2. Enter a person's gross wage. Check for invalid input (negative numbers). Apply
the following deductions to the gross wage to calculate the Taxable Income.
1
2024 Version 1.0
Dublin Business School
August 2024
a. For every child, taxable income is reduced by €2000
b. If single, the person is entitled to €2500. If married, €5000
The tax rates are as follows
a. Less than €20,000, 0%
b. between €20,000 and €35,000, 25%
c. The remainder is taxed at 40%
The summary screen should look like the following (Any figures in brackets are for guidance)
Gross Wages:
Deductions
Child allowance:
Marital Allowance:
Taxable Income
Tax: (Taxable Income * Tax Rates)
Net Income: (Taxable Income – Tax)
(15 Marks)
X
OO
XXX
OOOO
XXXXXX
Allow the user to input the number of lines they wish to see appear.
(15 Marks)
4. Create a program with functions that will evaluate the area of a circle, square,
rectangle or triangle. Return the calculation to the main program. Assume the data
inputted is valid and the following are the means of calculating the related areas.
(15 Marks)
2
2024 Version 1.0
Dublin Business School
August 2024
5. Allow the user to input a number between 1 and 12 inclusive. The program will
then display the month name and how many days are in that month. Invalid input
is handled i.e. negative numbers and numbers greater than 12. The user can then
input the total sales for that month, and this is saved 2 an appropriate data set.
(15 Marks)
6. Using python code and a web API gather stock price data on the current stock
price of Exxon mobile (XOM) from yahoo finance. If the price is over 100 dollars
buy, otherwise don’t.
(30 Marks)
3
2024 Version 1.0
Dublin Business School
August 2024
Grading Criteria
Exceptional 90-100% •Highly efficient, clean, and well-structured code, far exceeding Skilful integration and use of
expected standards. APIs, demonstrating deep
understanding and usage of
•Fully implements all required features and goes beyond by including advanced API features.
advanced features or optimizations.
Outstanding 80-89% •Very clean, well-structured code that exceeds most expectations. Effective and efficient use of
APIs, with clear understanding
•Implements all required features with some enhancements or extra and some use of advanced
functionality. features.
4
2024 Version 1.0
Dublin Business School
August 2024
Excellent 70-79% •Clean and well-organized code that exceeds the threshold in most Good understanding of APIs,
areas. using them appropriately,
though limited in advanced
•All required features are implemented and working as expected, usage.
with minor additional elements.
•Error handling is present but may not cover all edge cases.
Very Good 60-69% •Generally clean and readable code though could be improved in Basic usage of APIs, possibly
some areas. limited to simple or well-known
functions.
•Most required features are implemented correctly, with minimal
issues or bugs.
5
2024 Version 1.0
Dublin Business School
August 2024
Good 50-59% •Code is functional but may be messy or difficult to follow. Basic usage of APIs, possibly
limited to simple or well-known
•Core features are implemented, but some may not work as functions.
expected or are incomplete.
Sufficient 40-49% •Code is somewhat difficult to follow, with poor organization. Limited or incorrect use of APIs,
with only basic functionality
•Basic features are implemented, but several may not function covered.
properly or are missing.
6
2024 Version 1.0
Dublin Business School
August 2024
Somewhat 30-39% •Code is disorganized and hard to understand, with major readability Attempts to use APIs, but with
fulfilled issues. significant errors or
misapplication.
•Only a few core features are implemented, and many are broken or
incomplete.
Limited 20-29% •Poorly structured code that may not even run successfully. Minimal to no API usage, with
fulfilment major errors or lack of
•A few features are attempted but largely do not work. understanding.
Unfulfilled 0-19% •Code does not compile or run or is completely non-functional. No attempt to use APIs.
MIMLO Alignment (see Module Guide for Minimum Intended Learning Outcomes for Module)
2,4 5
7
2024 Version 1.0
Dublin Business School
August 2024
General Requirements for Students:
1. All assignments must be submitted no later than the stated deadline (10/11/2024 , 23:59).
2. Assignments submitted after the latest deadline specified (including any approved
extension deadline) are considered late and penalised according to the Quality Assurance Handbook
(QAH) Part B Section 5.2.2.6 as follows:
a. A penalty of 2 marks will be applied per day or part thereof (including weekends and
public holidays) for an ongoing failure to submit beyond the submission deadline.
b. An examiner has the right to refuse to mark the assignment if the submission
instructions have not been observed.
c. Where a late assessment is submitted within 14 days of the deadline, and is of a
passing standard, the late penalty is capped (such that the minimum grade that can
be awarded is 40% for the late submission).
d. Where a late assessment is submitted more than 14 days after the deadline, it will
receive 0%. The lecturer may, at their discretion, review the submission for
feedback.
e. Where the assessment is undertaken in a group, the piece of work should be
submitted in its complete entirety, and any penalty for late submission incurred
applies to all group members.
3. Extensions to assignment submission deadlines will not be granted, other than in
exceptional circumstances. To apply for an extension please go to
https://students.dbs.ie/dashboard/SCCM and open a ticket.
4. All relevant provisions of the Assessment Regulations must be complied with (see QAH B.5).
a. Students are required to refer to the assessment regulations in their Programme
Handbook, and on the Student Website.
b. Dublin Business School penalises students who engage in academic impropriety (i.e.
plagiarism, collusion and/or copying, ghost writing/ essay mills, improper use of
Generative Artificial Intelligence software).
i. Refer to the College’s Generative AI Guidelines HERE for further information.
c. Guides on referencing are available on the Library website:
https://libguides.dbs.ie/referencing
d. Text-matching analysis software is integrated in Moodle to generate a report
regarding the degree of text-matching in a submission.
5. Students are required to retain a copy of each assignment submitted, until the issuing of a
transcript indicating the mark awarded and the closure of the Appeal period (2 weeks following the
release of final results).
a. Results can only be appealed following the release of final results, and the Appeal
form must be submitted to the Exams Office within the Appeal period.
b. An appeal must be based on valid grounds (see the Appeals Policy QAH B.3.5),
dissatisfaction with a grade is not sufficient grounds for an appeal.
c. Assignments must be appropriately packaged and presented.
d. All assignments should be submitted to your subject/course page on Moodle by the
deadline date.
e. Where a submission involves digital media (i.e formats other than Word, Powerpoint
or PDF), it is the submitting students’ responsibility to ensure the media is
appropriately labelled, fully working and they must retain a copy2.
8
2024 Version 1.0
Dublin Business School
August 2024
f. Components of an assessment which are not included in the final submission cannot
normally be subsequently accepted for grading. It is the student’s responsibility to
ensure their file is uploaded correctly.
6. Assignments that breach the word count requirements will be penalised. There is a 10%
discretion, either way, applicable in terms of word count.
7. When you submit your assignment you will be asked to click on a button which will declare
the following:
By ticking this box I am confirming that this assignment/exam is all my own work. Any sources used have
been referenced.
I have read the College rules regarding plagiarism in the QAH Part B Section 3 and understand that
penalties will be applied accordingly if work is found not to be my own. All work uploaded is submitted
via Ouriginal, whereby a text-matching report will show any similarities with other texts.
9
2024 Version 1.0