Answered step by step
Verified Expert Solution
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: calculateWeeklyPaygrossPay: 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 : Calculate weekly wages and superannuation using valid inputs.
Test Case : Handle incorrect inputs such as negative gross pay
Test Case : Verify computations using various superannuation rates.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started