0 like 0 dislike
2.2k views
Show more...
[Exercise] Coding (C) - asked in C++
ID: 24828 - Available when: Unlimited - Due to: Unlimited
| 2.2k views
0 0
Called for Help
0 0
Called for Help

18 Answers

0 like 0 dislike
Hidden content!
* * ** * * **



using ** * * * std;



class * *

{

//your code here
* * *** * * *
* * * ** * * ***** *** **
******* * * **** ** ** * *** * ****** = 120;
** * * * * *** **** *
********* * *** * * ***
* * * * * *** **** salary;

};



class Intern : public Employee

{

//your code here
* *** *
* ** * *** *** ** *** * ** ***
**** * * ** * *** * ** ** ** **** ** ***** * = 0;
** *** *** ** *
* * * * **** * * * * *** ****

};



class PartTime : public Employee

{

//your code here
** * *
* ** * ** ** * ** ** *
* **** * ***** * * **** * * ** * **** ** * * * * = 1;
* *** * * * *** * **** * * ** * * ** * * = 120;
** * ** * *** *** * * * * *
** *** **** * ** *** ***** * *
** ** * * * *
* ** * **** ** * ** * * * * *

};



class FullTime : public * * *

{

//your code here
* * ** ** ***
** *** *** *** * * * *** * {
*** ** * ** * ** * * **** *** ** * *** * ** = 50000;
* * * * **** *** * **
* * * ** ** *** ** ** *** ** *
* * ** ** ** *
** ** * * * *** * ****** * * * ***

};



int main()

{

int money = 0;
** ** user;
* ** user2;

Intern user3;



money = * * *
****** * * * * ** : * *** * ** **** * * ***** * * *** *

money = * **
***** * * * ****** time monthly pay : ****** ****** * * ** **

money = * * **
* * * * ** ** *** * : **** ***** *** **** ** *** * * *

return 0;

}



int * ** *
** **** **** * ** * salary;

}



int * *** * * *
* * * * * * * * ***** ** salary;

}



int * ** * **
* * * * ** * *** * * *** *

}



int * ** *
** * **** ** **** * ** * **

}
answered by (237 points)
0 like 0 dislike
Hidden content!
* * ** ***



using ** *** std;



class **

{

//your code here
** * *****
* ** * * * * * *** *
* * * * * * *** ***** * * ** ** ** * ** = 120;
* * ************ ** **
* * * ** * **** * * ****
* * ** **** ** *** **** ** * * salary;

};



class Intern : public Employee

{

//your code here
* * * * *
** ** * ***** * * * * *
* *** * * * ***** * *** * * ****** * ** ** * * **** = 0;
****** *** ** *** *
* ** ** ** * ***** * * *****

};



class PartTime : public Employee

{

//your code here
* ** * * **
* * * ** *** ** **
* * * * * * ***** ** * * ******* * *** ** ** * ** = 1;
**** * * * *** ****** ** ** ** *** *** * *** * = 120;
* ** *** *******
***** * * ** ** * **** *** ** *
* * **** * * **
** ** **** *** **** * * ** *

};



class FullTime : public * ***

{

//your code here
* * * *** ***
**** *** **** *** * ** *** * {
* * ***** * * *** * **** **** * * * *** *** * ** = 50000;
* * *** * ** *** ****
* ** * * * *** **** *** *
* * *** **
* ** * * * * *** ** *** * *

};



int main()

{

int money = 0;
* * user;
* ** user2;

Intern user3;



money = ****** **
* ** ***** * * **** : ** * ** **** * ** ** * * * * * * **

money = *** *
* * ** ** ** * * time monthly pay : * ** * * *** *** *

money = * * ** *
* * * * * * * * * : * * ** ***** ** ***** ******

return 0;

}



int * * * * * *
* * ** ** * * ** **** salary;

}



int * ***** * **
** * *** **** ** * ***** * *** salary;

}



int * ** * ** ****
*** ** *** ** **** **** * ***** *

}



int ******* *
** * ** * ** ** * ** **

}
answered by (126 points)
0 like 0 dislike
Hidden content!
* ***** ** **


* ** * std;


* ***

{
*** code here
** * *
*** * * * **** **** * **


* *
* *** ** * ****** **** * ** *** * ***

};


* ** ** : *** * * **

{
code here
**
******** ** ** * ** ** * * = 0;}



};


** ** ** : * ***

{
* code here
**** *
* *** ** *** *** * * *** *** = **

};


** : * * *

{
* *** code here
***
* * ** * * * ** **** = ****

};



int

{

int money = 0;
* user;
*** *
***


* = * *
* ** ******** ******* : ** * * *** *** ** * ** ******* * * **
* * = * * * *** *
***** *** ** * * time * pay : * * ** **** ** ** *** ** * *
* * = * * * *
* * **** *** * * : * * ** ***** ** ** ** *** ** *
* * * 0;

}
answered by (-298 points)
0 like 0 dislike
Hidden content!
*** * * *****


* * ** ** std;


*

{
**** code here
* *
*** ****** ***


** *
***** * **** * * * ** ** * *** *****

};


** * * ** : *** **

{
** code here
**** *
** *** ** * * *** *** ** ** * * ***** * = 0;}



};


* ** * * ** : ** * *

{
** code here
* * ***
**** * ** ** * * ** * ****** = **

};


** : * * ***

{
** * code here
**
** * ***** * * *** * * * ** * * = *

};



int ** *

{

int money = 0;
* * user;
* * *
* * * **


* * = * ****
* ***** ** **** * *** **** : *** ** *** * * **** * * **
** = **
** * ** * * time ** pay : ** * ** * ** **** **
** = * ****** *
* ***** * * * * * *** : ** *** * * ** ** * **** **
* * 0;

}
answered by (-215 points)
0 like 0 dislike
Hidden content!
* * * **** * * *


** ** ** std;


*** ** * *

{
* * code here
* * **
** * *** *** * * * *** **


* * ****
** * *** ** **** * ** *** * * * * *

};


* * ** : * * * *

{
** *** code here
***
*** * * * *** *** **** ** ***** = 0;}



};


**** : * ****

{
** * code here
** *
* * * **** * * * * **** * ** =

};


*** : * ** *** *

{
**** code here
*** **
** * * ** **** ** * ** * * = ** *

};



int * *

{

int money = 0;
**** user;
* * * * * *
** * *


* ** = *** **
* *** ** ** * : * ** ** ** * * ***** **** *****
* = * * *
* ***** * ** time * * pay : * ** ** *** ** * ** *
** = * * **
* ** * * * ** * * : * *** ** **** ** * ** **
** * 0;

}
answered by (-215 points)
0 like 0 dislike
Hidden content!
* * * * * * ** ****


** *** std;


** * **

{
** code here
*******
** ** *** *** ** ** * *


* *
* **** * * *** * ** **** *** ** * ** **

};


* : * ** ***

{
* ** code here
* *
***** ***** * ** *** * ** = 0;}



};


* * **** : * ** **

{
** code here
***
* * * * ** ** **** ** *** * = * *

};


* ** : * ** * ***

{
* ** code here
*
* * ** ** * ** ***** ** **** = **

};



int ** **

{

int money = 0;
** user;
*
* * ***


* = ** ** ***
* ** ** * ** * * : * ** * ** *** * * *
** = * *
* *** * ****** **** time **** pay : * * **** * ** * * * * * **
** = * ****
* * *** ***** * * * : *** ** *** * * ** ** ** *
* 0;

}
answered by (126 points)
0 like 0 dislike
Hidden content!
* ** * * * *** **


*** *** * * std;


* ***

{
*** code here
* ** **
* * *** **** ** * ** *** * * *



** *** * * * * * * * * **

};


*** * * * : * *

{
* code here
*** *
*** ** * ** **** * ** ** * * **** = 0;}



};


** : *

{
*** code here
* *
** * * *** * *** ** ** ** = * **

};


* ** * * : * * * ** *

{
* code here
* *
* ** * * * * **** ** ***** *** = *** *

};



int **

{

int money = 0;
*** * user;
*** * *****
*** ** *


** * = ** ***
* * * * * **** ****** * : ** *** * ** ** * **** ** * **
** = * * **
** ** ** * * * time * ** pay : * *** *** * * ** * ** * * *
**** = * *
** * * * *** ** * : * * *** **** * *** ** ** * *
**** 0;

}
answered by (126 points)
0 like 0 dislike
Hidden content!
*** * ** * *** ***



using namespace std;



class Employee

{
*** * * ** ********
* **** ** * ***** * ** ** * * ** *** * * **** int getPay(){
* * * ** ** *** * ** * * ** * ** *** ** *** ** * ***** *** ** S;
* * *** ** * ** *** ** * **** * ** ** **
***** *** ** * * * ** * *
** ** ** * ** * *** * * * * * * **** S;

};



class Intern : public Employee

{
* * **** * ** * ** *
* ** *** *** * * * * ** **** * * * *
* * ** * * ** * *** * *** ** * * *** **** ** * ** *** ** ** = 0;
* * **** ** * **** *** ** ***** *



};



class PartTime : public Employee

{
* * ** ** * * * *** * *
*** * ****** * * * *** *** * **** * **
* ** ** ** * ** ********* * * ***** * ** * *** * *** * **** * * **** = 120;
** *** * * ** * * *** ** * * *** ** *

};



class FullTime : public Employee

{
* * * ******** **** *
* * * * * * *** ** * * **** * * **** * * ** * {
** ** ***** * ** *** * * ******* * ** ** * *** *** * *** * * = 50000;
*** * * ***** **** ** * ** * ** * *

};



int main()

{
* ** * ** *** *** ** * * * money = 0;
* * * ** ** * * ***** user;
* * ** * * * ** ** * * * user2;
***** ***** * *** *** * ** user3;


* * * ** * * ***** * ** = user.getPay();
**** ** * ** *** ** ** * * * ** ** : " << money<<endl;
** *** *** * * ** * * = user2.getPay();
* ** *** * ****** *** **** ** * * ***** * time monthly pay : " << * * * * *** *
** * * ** * * *** **** ** = user3.getPay();
** ** ** ****** *** * * ******* ** * ** * : " << money<<endl;
*** **** * * ** ** ** 0;

}
answered by (-249 points)
0 like 0 dislike
Hidden content!
**** * * **

using namespace std;



class Employee

{
** * ** ** * * ** * ** ** *
*** * ** * * ** * * * * * payT){
** * *** * * * ** **** * * ** ** * *** * ** *** * * = payT;
*** *** * **** * * *
** * ***** ***** * getPay(){
*** **** *** ***** ** * **** *** * * * **** pay;
** * ** * ** *** ** *
* * * **** * * **** *
** * *** * * * **** *** pay;

};



class Intern : public Employee

{
**** *** * * * *** * * *** ** *
** *** * **** * * * * * ** * ** ** * ***** * ** *
** ** * * * ** * * ***** ** *** * * * *** ** * getPay(){
** **** *** **** * * ** * * * **** ** * ** ** *** * * * 0;
*** *** ** * ** ***** *** ** * * * **
**** *** *** * * ** * *** * * * * * * *
* ***** * * *** *
* * ** *** ******** * ** * * ** ** * ** * pay;

};



class PartTime : public Employee

{
***** *** * ** *** **** * * *
* * * * ***** ** * * * ***** *** * * * * ** * *****
** * * * * *** **** ****** ** * * * * * ** getPay(){
* ** ** * * ** * ***** * **** * ** * * ** ** *** *** * ***** 120;
****** *** * ** ** ** * * ** *** * *** ***
* *** * ** ** ***** ** * * ** ******** *
** *** * **** ** * * * * * * * * *** ** *** * *
*** * * * ** * * ** *** * * * * * ***** **** *** ******** pay;

};



class FullTime : public Employee

{
* **** * *** ****** * ***
**** *** * * * * * ** ******* ** * * * * *
* * *** * * * ** * * ** **** * * * *** **** getPay(){
** * *** ** * * * **** * **** * * * **** * * * **** ** * *** * ** 50000;
*** * ** ****** * * * * ** * * * * * ******
* * ** * *** * * ** * * *** * ** * ***** *
* ** ** * * **** * ** ** * *** ** ***** **
* * * * ** ** * *** ** * **** * * * * ** *** ** * * * * **** pay;

};



int main()

{

int money = 0;

PartTime user;

FullTime user2;

Intern user3;



money = user.getPay();
* ** ** * : " << money<<endl;

money = user2.getPay();
* ** ** * * ****** ** * time monthly pay : " << money<<endl;

money = user3.getPay();
*** ** *** * ** * : " << money<<endl;

return 0;

}
answered by (-136 points)
0 like 0 dislike
Hidden content!
* * *** ***


* * * ** * std;


**** ***

{
* code here
* * **
** *** ****** * *** ** *** * ** *


***
** ********** * ** ** *** * * * * **** *

};


** * ** : * **

{
* * code here
***
** ** * *** * * * * = 0;}



};


*** * * : ** * *

{
* * code here
**
*** * ** *** * * * * * = **

};


*** * * : *****

{
** code here
* ***
*** ** * ** * * * * ** * **** = * *

};



int ****

{

int money = 0;
* * * user;
*** **
***


* * = * ****
* **** * * * * * ** * **** : *** ** **** * * ***** * *
*** = * *
* ** ** **** * *** time ** pay : *** **** * ** * ** ** ** *
** = * * **
* *** ** **** *** **** : ** * ** * * ** **** * **
** * 0;

}
answered by (-189 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.17.168
©2016-2025

Related questions

0 like 0 dislike
15 answers
[Exercise] Coding (C) - asked Jun 1, 2017 in C++
ID: 24854 - Available when: Unlimited - Due to: Unlimited
| 1.8k views
0 like 0 dislike
17 answers
[Exercise] Coding (C) - asked Jun 1, 2017 in C++
ID: 24855 - Available when: Unlimited - Due to: Unlimited
| 1.8k views
0 like 0 dislike
23 answers
[Exercise] Coding (C) - asked May 11, 2017 in C++
ID: 24589 - Available when: Unlimited - Due to: Unlimited
| 2.4k views
0 like 0 dislike
31 answers
[Exercise] Coding (C) - asked May 11, 2017 in C++
ID: 24588 - Available when: Unlimited - Due to: Unlimited
| 2.7k views
12,783 questions
183,442 answers
172,219 comments
4,824 users