Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this application developed in c + + Developing this Application Payslip Class: Define these characteristics in payslip. EmployeeName ( String ) Gross Pay

I need this application developed in c++
Developing this Application
Payslip Class:
Define these characteristics in payslip.
EmployeeName (String)
Gross Pay (Float)
Superannuation Rate (Float).
Superannuation Amount (float)
NetPay (Float)
Methods:
calculateSuperannuation() calculates the superannuation amount based on gross pay and rate.
calculateNetPay() calculates net pay by removing superannuation from gross pay.
getEmployeeName(): Returns the employee's name.
getGrossPay() returns gross pay.
getSuperannuationRate(): Returns the superannuation rate.
getSuperannuationAmount(): Returns the superannuation amount.
getNetPay() returns net pay.
Pay Calculator Class:
Method: calculateWeeklyPay(grossPay): Determines weekly pay based on given gross pay.
Application integration:
Create an instance of the Employee class with the required information.
Make an instance of the PaySlip class, passing the employee object and gross pay.
Use the PayCalculator class to compute weekly pay and save the results in the PaySlip object.
Use the PaySlip class methods to calculate superannuation and net pay.
Test Plan: When application is developed then please develop and apply a test plan to it for followig test cases:
Test cases:
Test Case 1: Calculate weekly wages and superannuation using valid inputs.
Test Case 2: Handle incorrect inputs (such as negative gross pay).
Test Case 3: Verify computations using various superannuation rates.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

f. Did they change their names? For what reasons?

Answered: 1 week ago