declare ename varchar2(15); basic number; da number; hra number; pf number; netsalary number; begin ename:=’&ename’; basic:=&basic; da:=basic * (30/100); hra:=basic * (10/100); if (basic < 8000) then pf:=basic * (8/100); elsif (basic >= 8000 and basic <= 16000) then pf:=basic * (10/100); end if; netsalary:=basic + da + …
Read moreHow is net salary calculated in SQL?
declare ename varchar2(15); basic number; da number; hra number; pf number; netsalary number; begin ename:=’&ename’; basic:=&basic; da:=basic * (30/100); hra:=basic * (10/100); if (basic < 8000) then pf:=basic * (8/100); elsif (basic >= 8000 and basic <= 16000) then pf:=basic * (10/100); end if; netsalary:=basic + da + …
Read moreWhat are classes in C++ used for?
A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class.
Read moreWhat is class in C++ short answer?
Class: A class in C++ is the building block that leads to Object-Oriented programming . It is a user-defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A C++ class is like a blueprint for an object.
Read moreHow do you explain a C++ program?
C++ is a cross-platform language that can be used to create high-performance applications . C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ gives programmers a high level of control over system resources and memory.
Read moreHow is salary calculated for employees in C++?
Formula’s :- Gross Salary = Basic + Da + Hra + Ma . Deduction = Gross Salary – Pf – Pt – It. Net Salary = Gross Salary – Deduction. Logic:- For finding a gross salary of Employee we need to calculate DA and HRA then Sum Of Basic Salary + HRA + DA.
Read more