Final PCI Microproject
Final PCI Microproject
GROSS SALARY : Gross Salary is the total amount of salary that an employee earns
before any deductions are made.
NET SALARY : Net Salary is the amount of salary that an employee receives after all
deductions have been made from their gross salary.
02
APPLICATIONS :
The salary calculator is a useful tool for individuals and organizations to calculate the gross
salary of an employee based on their basic salary and applicable allowances.
● For employees: Employees can use the salary calculator to calculate their gross salary,
which can help them understand their take-home pay and plan their expenses accordingly.
It can also be used to negotiate salary with their employers or to compare different job offers.
● For employers: Employers can use the salary calculator to calculate the gross salary of their employees
and ensure that they are paying them fairly based on industry standards and market trends. It can also
help in budget planning and allocation of resources.
● For HR departments: HR departments can use the salary calculator to determine the compensation
package for new hires or to revise the salary of existing employees based on performance or promotion.
● For financial planning: The salary calculator can be used as a tool for financial planning and
budgeting, as it gives an idea of how much a person can expect to earn and save in a particular job
or industry. Overall, the salary calculator is a simple and useful tool that can help individuals and
organizations make informed decisions regarding compensation and financial planning.
03
CODE INFO :
The program prompts the user to enter the basic salary of an employee and then calculates the HRA and
DA based on the given rules. The program then calculates the GS, PF, PT, GD, and NET based on the given
formulas. After the calculation is complete, the program displays a menu of options to the user to select
which information to display (HRA, DA, GS, PF, PT, GD, or NET) or to exit the program. The program
uses a switch case statement to display the selected information or to exit the program. The program
continues to display the menu of options until the user selects to exit the program by entering '0'. Once the
user selects to exit the program, the program displays a 'Thank You' message and terminates.
04
BASIC SYNTAX :
If …. Else Statement :
How Does it work ?
If the test expression is evaluated to true, statements inside the body of if are
executed. Statements inside the body of else are skipped from execution.
If the test expression is evaluated to false, statements inside the body of else
are executed. Statements inside the body of if are skipped from execution.
Syntax :
The if statement may have an optional else block.
The syntax of the if …. else statement is:
if (test expression)
{
// run code if test expression is true
}
else {
// run code if test expression is false
}
Switch Statement :
How Does it work ?
A switch statement causes control to transfer to one labeled-statement in its
statement body, depending on the value of expression .
The values of expression and each constant-expression must have an integral
type. A constant - expression must have an unambiguous constant integral
value at compile time.
The syntax of the switch statement is:
Syntax :
switch (expression)
{
case constant1:
// statements
break;
case constant2:
// statements
break; . . . . . . . . . . .
default:
// default statements
}
Do While Loop :
How Does it work ?