KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KING'S IT WORLD


 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
cs201 assignment no 3 solution fall 2010 Icon_minitimeMon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
cs201 assignment no 3 solution fall 2010 Icon_minitimeWed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
cs201 assignment no 3 solution fall 2010 Icon_minitimeMon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
cs201 assignment no 3 solution fall 2010 Icon_minitimeThu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
cs201 assignment no 3 solution fall 2010 Icon_minitimeThu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
cs201 assignment no 3 solution fall 2010 Icon_minitimeTue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
cs201 assignment no 3 solution fall 2010 Icon_minitimeThu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
cs201 assignment no 3 solution fall 2010 Icon_minitimeFri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
cs201 assignment no 3 solution fall 2010 Icon_minitimeThu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
cs201 assignment no 3 solution fall 2010 Icon_minitimeThu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
cs201 assignment no 3 solution fall 2010 Image
Powered by website analytics technology.
Keywords
2011 final paper 2010 MGT502 HRM611 term MGMT611 assignment
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

 

 cs201 assignment no 3 solution fall 2010

Go down 
AuthorMessage
Admin
Admin
Admin


Scorpio
Posts : 638
Points : 2155
Reputation : 19
Join date : 2010-05-15
Age : 36
Location : islamabad

cs201 assignment no 3 solution fall 2010 Empty
PostSubject: cs201 assignment no 3 solution fall 2010   cs201 assignment no 3 solution fall 2010 Icon_minitimeThu Jan 06, 2011 12:51 pm

Code:

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

class calsalary
{
    private:
        int empID,empGrade;
        char empName[20];
        int salary;
      public:
          calsalary()
          {
              empID=0;
              empGrade=0;
              strcpy(empName," ");
              salary=0;
          }
          void getData()
          {
              cout<<"please enter employee ID:";
              cin>>empID;
              cout<<"Please enter employee Name:";
              cin>>empName;
              cout<<"Please enter employee Grade:";
              cin>>empGrade;
          }
          int calculate(int grade)
          {
              switch(grade)
              {
                  case 17:
                      salary=15000+(15000*45/100);
                      break;
                  case 18:
                      salary=20000+(20000*45/100);
                      break;
                  case 19:
                      salary=25000+(25000*45/100);
                      break;
                  default:
                      cout<< "Your typed Grade in not listed";
                      break;
        }
        return salary;
    }
    void setData()
    {
        cout<<"The net salary of" <<empName << " is Rs." <<calculate(empGrade)<<endl;
    }
   
    ~calSalary()
    {
    }
 };
 int main(void)           
 {
    calSalary obj1;
    obj1.getData();
    obj1.setData();
   
    system("pause");
    return 0;
 }
Back to top Go down
 
cs201 assignment no 3 solution fall 2010
Back to top 
Page 1 of 1
 Similar topics
-
» CS610 ASSIGNMENT NO 3 SOLUTION FALL 2010
» MGT101 ASSIGNMENT SOLUTION FALL 2010
» cs402 assignment no 3 solution fall 2010
» CS101 ASSIGNMENT NO 4 SOLUTION FALL 2010
» CS401 ASSIGNMENT NO 4 SOLUTION FALL 2010

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: ASSIGNMENTS-
Jump to: