1 Fundamentals of Object Oriented Programming A1 Brief
1 Fundamentals of Object Oriented Programming A1 Brief
Title & Code of Minor Award: Fundamentals of Object Oriented Programming 5N0541:
Class: CCP1 & CCP2
Title: Skills Demo 1
Assessment No1. and Technique: Assignment Weighting (20%):
Issue Date:07/11/2022 Submission Date:
02/12/2022
Feedback Date: 22/01/2023 Sean Ridge:
REPORT TEMPLATE ON PAGE 4
Learning Outcomes: 1,
Total Mark: Mark is provisional and subject to change by the external authenticator.
1
Teacher Feedback: It is the learner’s responsibility to be in class when feedback is being given.
Strengths:
You will need to calculate PAYE for and earner who is taxed as the sole earner in a
couple.
Jane Bloggs has a weekly tax credit of €74.57
Deduct the weekly tax credit from gross PAYE giving net PAYE.
(iii) A method to calculate the weekly USC using the following rules;
For (weekly gross <=231) USC is charged at .5% (i.e. half of 1%)
For (weekly gross >231) AND (weekly gross <=409.51) USC is charged at 2%.
For (weekly gross >409.51) AND (weekly gross <=1347.00) USC is charged at 4.5%.
All weekly gross > 1347 is liable to USC at 8%
2
(b) Create one instance or object of this class called employee1.
(c) Your program must perform one appropriate data type conversion.
(d) You must include at least four relevant comments (referring to examples of OOP terms
of your program) in your programming code.
(e) Your program must be set out in logical program blocks by appropriate indentation of
code. The code blocks editor does this automatically.
(f) The class Member functions/Methods names and Data member names are as follows.
Use appropriate return value and parameter data types for example.
Data Members
dm_employee_F_name
dm_employee_S_name
dm_tax_status
dm_hours ;
dm_rate ;
dm_gross;
dm_prsi;
dm_paye;
dm_usc;
dm_tax_credit;
dm_netpay;
(g) Save the program in a folder called OOPA1 Your Name and submit a softcopy (via
MOODLE) of the working program (and the report outlined below) by 12 midnight on
2nd December 2022. Marks will be deducted in line with Rathmines College late
3
submission policy. You will lose 10% of the marks achieved if you submit one week
late and you will lose 20% if you are two or more weeks late.
(a) A list of 4 errors (and how you fixed them) that arose when you were testing your
program and 4 screen grabs of the relevant error code blocks screens.
DONE WORK
a) SCREENGRAB OF DATA CONVERSION
4
c) SCREENGRAB OF DISPLAY FUNCTION
5
b) Calculation error
6
d) Syntaxis problem