Posts

Showing posts with the label Gross Salary

C++ Program to Load and Store Records of N Employees N कर्मचारियों के रिकॉर्ड को इनपुट एवं स्टोर करने का C++ प्रोग्राम

In C++, an array of objects can be used to store records of multiple employees. Each object represents one employee and stores information such as Employee ID, Name, and Basic Salary. We can also calculate different salary components such as Travel Allowance (TA), Dearness Allowance (DA), House Rent Allowance (HRA), and Gross Salary using member functions. C++ में Multiple Employees के Records को Store करने के लिए Array of Objects का उपयोग किया जा सकता है। प्रत्येक Object एक Employee को दर्शाता है तथा इसमें Employee ID, Name और Basic Salary जैसी जानकारियाँ Store की जाती हैं। Member Functions की सहायता से Travel Allowance (TA), Dearness Allowance (DA), House Rent Allowance (HRA) तथा Gross Salary की गणना भी की जा सकती है। Salary Calculation Formula (सैलरी कैलकुलेशन फॉर्मूला) TA = 25% of Basic Salary DA = 50% of Basic Salary HRA = 10% of Basic Salary Gross Salary = Basic Salary + TA + DA + HRA Program: #include <iostream> #include <string> #include <iomanip> using namesp...