how to calculate the gross pay of an employee using C++
Subject I this post I am discuss how to calculate the gross pay of an employee take salary as input for the user and calculate gross pay using formula. Formula “Grosspay=Salary=Allowance-Deduction” This code is written to C++ initial declare four variable Salary , Allowance , Deduction , Grosspay and user enter the salary and calculate the gross pay. Source Program: #include "iostream" using namespace std; void main() { float Salary , Allowance , Deduction , Grosspay; cout<< "The Monthly Salary is = " ; cin>>Salary; cout<< "The Allowance is = " ; Allowance=15*Salary/100; ...
Comments
Post a Comment