Go Back   2023 2024 MBA > MBA > Main Forum

  #1  
Old 10th October 2012, 11:24 AM
madan kumar rai.p
Guest
 
Default VTU Lab Programs For BE

Tell me the procedure of get the information about Visvesvaraya Technological University Lab Programs for BE from net because I want to do lab programs so want to know about this
Reply With Quote Quick reply to this message
  #2  
Old 10th October 2012, 12:40 PM
Super Moderator
 
Join Date: May 2012
Default Re: VTU Lab Programs For BE

Here I am giving you Lab program of OOPs subject as given below:-

Write a c++ program to read the data of N employees & compute net salary of each employee.

#include<iostream.h>
#include<iomanip.h>
#include<conio.h>

class employee
{
private:
int no;
char name[20];
float basic,da,it,net;
public :
employee();
~employee();
void getdata();
void putdata();
void cal();

};

//constructor
employee::employee()
{
}

//destructor
employee:: ~employee()
{
}

//member function to input data
void employee::getdata()
{
cout<<"Number:"<<endl;
cin>>no;
cout<<"Name:"<<endl;
cin>>name;
cout<<"Basic:"<<endl;
cin>>basic;
}

//member function to do calculation DA, IT and Net salary
void employee::cal()
{
cout<<” Calculating net salary of the employees”<<endl<<endl;
da=basic*.52;
it=(basic+da)*.30;
net=basic+da-it;
}

//memberfunctiom to output data
void employee:utdata()
{
cout<<no<<”\t” <<name<<”\t” <<basic<<”\t” <<net<<endl<<endl;
cout<<"---------"<<endl;
}
main()
{
employee e[10];
int i,n;
clrscr();
cout<<endl<<"Enter the no of employee n:";
cin>>n;

for(i=0;i<n;i++)
{
cout<<"Enter the information of employee "<<i+1<<endl;
e[i].getdata();
}

cal();

cout<<endl<<"Employee details:"<<endl;
cout<<"-------------------------------------------"<<endl;
cout<<” s_num\t\tName\t\t basic\t\t net\n\n”;
for(i=0;i<n;i++)
e[i].putdata();
getch();
return 0;
}

******OUTPUT******

Enter the no of employee n:
2
Enter the information of employee 1

Number: 11
Name: Naveen
Basic: 6000

Enter the information of employee 2

Employee num: 12
Employee name: Sundeep
Basic salary: 7000

Calculating net salary of the employees

Employee details:
-------------------------------------------
s_num Name basic net

11 Naveen 6000 6384

------
12 Sundeep 7000 7448

------

If you want to get more program then I am giving you zip file from which you can get more program so please see given below attachment:-
(VTU Lab Programs OOPs)
Attached Files
File Type: zip VTU Lab Programs OOPs.zip (68.7 KB, 10 views)
Reply With Quote Quick reply to this message
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
MBA programs stl Saksham Online MBA Discussions 2 13th April 2018 12:58 PM
GPA MBA programs mamta Online MBA Discussions 2 11th April 2018 11:04 PM
Top MBA Programs in the UK vikram kapoor.q Main Forum 2 7th April 2018 01:44 PM
MBA programs in wny Saksham Online MBA Discussions 2 31st March 2018 03:33 PM
UWF MBA Programs ritu:.i Main Forum 2 29th March 2018 08:44 AM
MBA Law Programs mamta Online MBA Discussions 2 24th March 2018 09:54 AM
Best MBA Programs For IT payal Online MBA Discussions 2 21st March 2018 04:45 PM
MBA EDD programs shweta Main Forum 2 8th March 2018 05:04 PM
USA MBA Programs Unregistered Online MBA Discussions 1 20th November 2015 10:23 AM
MBA Top Programs USA Unregistered Online MBA Discussions 1 20th November 2015 09:16 AM
Top MBA Programs Unregistered Online MBA Discussions 1 19th November 2015 06:16 PM
MBA programs by GPA Unregistered Online MBA Discussions 1 19th November 2015 05:13 PM
MBA programs KC Unregistered Main Forum 1 6th November 2015 07:31 PM
E MBA Programs Unregistered Main Forum 1 6th November 2015 07:05 PM
Best MBA Programs in Dc shweta rawat Main Forum 1 22nd November 2012 11:38 AM
GRE Scores for MBA Programs good MBA Programs Unregisteoper Main Forum 1 16th November 2012 11:54 AM
MBA Programs FMS banwari sainir Main Forum 1 10th November 2012 11:41 AM
MBA Programs in DC pradeep rai2 Main Forum 1 8th November 2012 05:30 PM
Best MBA Programs USA keithpatel.y Main Forum 1 17th October 2012 10:59 AM
UNC MBA Programs Cool manu Main Forum 1 16th October 2012 04:03 PM


Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5.5. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2

1 2