b) (i) Write a programme to sort an inter array of size 6 in descending order using insertion sort algorithm.
(ii) Define a class named EMPLOYEE in C++ with the following description.
Private Members:
E_Id – Integer
E_name – String of 25 characters
DOB – String of 12 characters
Basic – Float
DA – Float
HRA – Float
TOT_Salary – Float
Calculate-Salary () – it calculate the total salary as basic +DA+HRA where DA is 80% of basic and HRA is 15% of basic.
Public members
Accept () – it accepts E_Id, E_name, DOB and basic. Thereafter it called the calculate salary. Dispaly () – it displays the entire data.
A constructer to initialize all integers and floats with 0.
(iii) Explain copy constructer with suitable example give proper class definition including the definition of copy constructor. How will this constructor be inwoked
Global Learning Solution
Mob. +919599608544 (also available on Whats App), 01165645621
nioshelp24@gmail.com
Working Locations:
New Delhi ||Uttar Pradesh | Madhya Pradesh | Bihar | Haryana | Karnataka | Uttarakhand | Maharashtra | Chhattisgarh | Punjab | Jammu & Kashmir |Jharkhand | Rajasthan | Himanchal Pradesh | Goa | Nepal | GUJRAT|| ODISHA|| TAMILNADU|| KERELA|| ANDHRA PRADESH||
Note :Global Learning Solution is NIOS facilitation centre. We help the student to getting complete their education
(ii) Define a class named EMPLOYEE in C++ with the following description.
Private Members:
E_Id – Integer
E_name – String of 25 characters
DOB – String of 12 characters
Basic – Float
DA – Float
HRA – Float
TOT_Salary – Float
Calculate-Salary () – it calculate the total salary as basic +DA+HRA where DA is 80% of basic and HRA is 15% of basic.
Public members
Accept () – it accepts E_Id, E_name, DOB and basic. Thereafter it called the calculate salary. Dispaly () – it displays the entire data.
A constructer to initialize all integers and floats with 0.
(iii) Explain copy constructer with suitable example give proper class definition including the definition of copy constructor. How will this constructor be inwoked
Delivery: Solved Assignments will be send to your email id or address instantly after confirmation of payment as per your demand...
Please get in touch with us for order/help/assistance on
Please get in touch with us for order/help/assistance on
Global Learning Solution
Mob. +919599608544 (also available on Whats App), 01165645621
nioshelp24@gmail.com
Working Locations:
New Delhi ||Uttar Pradesh | Madhya Pradesh | Bihar | Haryana | Karnataka | Uttarakhand | Maharashtra | Chhattisgarh | Punjab | Jammu & Kashmir |Jharkhand | Rajasthan | Himanchal Pradesh | Goa | Nepal | GUJRAT|| ODISHA|| TAMILNADU|| KERELA|| ANDHRA PRADESH||
Note :Global Learning Solution is NIOS facilitation centre. We help the student to getting complete their education
No comments:
Post a Comment