enario: Your friend Michael has recently started a “Movers and Cleaners” business. His business assists people in moving to a new flat by packing and moving their household items and cleaning the old and new flat for moving. He has employed three people and needs you to assist him in generating correct pay slips for his employees automatically. He is aware that you have been studying Java and wants to seek your skill on this particular project. Michael has asked you to program a Paycheck Calculator for his company. Write a program that calculates and prints the fortnightly pay slip for an employee. The net pay is calculated after taking the following deductions: FNPF: 8.5% PAYE: 6.5% Fiji Care Tax: 2.85% Medical Insurance: $6.50 The program will need the following values for each employee from the user: employee first and last names, hours worked and the pay rate. Design your program to get these inputs from the user. Store these input into variables and use these variables when you call the methods. Your program should then perform calculation according to the deduction details given above. The output to be displayed on the Console. You should design your own output format to neatly display the pay in a pay slip form
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Step by step
Solved in 2 steps with 2 images