0% found this document useful (0 votes)
111 views7 pages

1 Fundamentals of Object Oriented Programming A1 Brief

The document provides an assessment brief for a programming assignment on object oriented programming. The assignment requires learners to write a C++ program containing a Payroll class with methods to calculate an employee's gross pay, PAYE, USC, PRSI, and net pay. Learners must create an object of the Payroll class, include at least four comments, and submit their working program and a report with a flowchart, screenshots of errors and fixes. The assignment is worth 20% and is due by December 2nd, with marks deducted for late submissions.

Uploaded by

Sasha (Shandi)
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views7 pages

1 Fundamentals of Object Oriented Programming A1 Brief

The document provides an assessment brief for a programming assignment on object oriented programming. The assignment requires learners to write a C++ program containing a Payroll class with methods to calculate an employee's gross pay, PAYE, USC, PRSI, and net pay. Learners must create an object of the Payroll class, include at least four comments, and submit their working program and a report with a flowchart, screenshots of errors and fixes. The assignment is worth 20% and is due by December 2nd, with marks deducted for late submissions.

Uploaded by

Sasha (Shandi)
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

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

Learner Name (Print): Oleksandr Chornyi


I confirm that I have kept a copy of my work and that this is my own original work.
Signature:

Assessment Criteria Max. Mark Learner Mark


Clearly Documented Source Code 4
Program Functionality 4
Accurate Programming (Syntax and Semantics) 8
Software Testing/Debugging 4
Subtotal 20
Marks deducted for Late Submission:

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:

Areas for improvement:

Skills Demonstration #1 Learner Tasks – 20%:


PART 1. Write a C++ program. 14%
(a) Design, code and test an object oriented program that contains a single class called
payroll that processes weekly payrolls. Test the program for one employee Jane Bloggs
(who is taxed as a single earner i.e code = ”S”). Jane is working 50 hours at €15 per
hour. The class must include a method for each of the following;
(i) A method to get gross pay that allows the user to key in firstname, surname, tax
status code (S for single earner, C for sole earner of a couple. This method
calculated gross pay i.e. hours X rate.
(ii) A method to calculate weekly PAYE using the following rule for single earners.
For Weekly gross pay <= 707.69, weekly PAYE is charged at 20% of gross and
gross pay > 707.67 PAYE is charged at 40% of gross.

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%

(iv) A method to calculate weekly employee PRSI at 4% of weekly gross pay.


(v) A method that calculates net pay
(vi) and finally a method that displays a payslip with the same format, border and layout
as the payslip below. The figures below are for illustration and are no the
calculated values as per this brief.

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.

Use Appropriate Method name Parameters


Return type
float get_gross_pay (float hours, float rate)
float get_usc (float gross_pay)
Float get_paye (float gross_pay)
Float get_prsi (float gross_pay)
Float get_net_pay ()
Void display_payslip ()

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.

PART 2 Write a report to include the following. (6%)

A simple flowchart based on the above programming problem statement.

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

Include a softcopy of working program e.g.

DONE WORK
a) SCREENGRAB OF DATA CONVERSION

b) SCREENGRAB OF TOTAL PROGRAM

4
c) SCREENGRAB OF DISPLAY FUNCTION

d) SCREENGRAB OF PAYE FUNCTION

1. PROBLEMS AND FIXES


a) Return no data to the main function

5
b) Calculation error

c) Missing type of variable

6
d) Syntaxis problem

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy