Program is to define a class as employee, C/C++ Programming

Program is to define a class as employee:

Write a program to define a class as employee and collect information about them by using classes and object

class employee



    char name[20];

    int empno;

    float basic,hra,da;

    float netpay;

    float calculate()



      return netpay;



     void readdata();

     void dispdata();



void employee::readdata()



  cout<<" enter your name "<<"\n";


  cout<<" enter the empoyee number "<<"\n";


  cout<<" enter the basic salary "<<"\n";


  cout<<" enter the house rent allowance "<<"\n";


  cout<<" enter the dearance allowance"<<"\n";




void employee::dispdata()



  cout<<" the name is :"<

  cout<<" the employee number is :"<


  cout<<" the salary you get is : "<



 void main()



  employee info;




Posted Date: 10/19/2012 5:26:34 AM | Location : United States

Related Discussions:- Program is to define a class as employee, Assignment Help, Ask Question on Program is to define a class as employee, Get Answer, Expert's Help, Program is to define a class as employee Discussions

Write discussion on Program is to define a class as employee
Your posts are moderated
Related Questions
Write a main program that uses these system calls to echo the typed characters. The pseudo code will look something like: void traphandler ()  {    if (R0 == 0) { // read sys

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

please may i have a brief theory about a c++ program to find net salary of employees

Q: When should you employ multiple inheritance? A:There  are  three  acceptable  answers:-  "Rarely," "Never," and  "while  the  problem  domain cannot be modeled accurately any

Given a bool variable isReadable write some statements that assign true to isReadable if the file "topsecret" exists and can be read by the program and assigns false to isR

code for solving optimal solution for matrix

write a program in c/C++ using nested if statement for calculating the average marks and grades of 5 subjects

#questio#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concate