Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- class student
- {
- double bal;
- double stag;
- public:
- student(double bal, double stag)
- {
- this->bal = bal;
- this->stag = stag;
- }
- void cal() {
- int bonus;
- if (bal == 1)
- {
- bonus = 1;
- }
- else if (bal == 2 && 5)
- {
- bonus = 16;
- }
- else {
- cout << "WELL, he programer made a mistake or your stage is too low, try again" << endl;
- }
- double calresult = bonus * stag;
- cout << bonus*stag << endl;
- if (calresult >= 45) {
- cout << "You are in " << endl;
- }
- else {
- cout << "Your are not ap to job" << endl;
- }
- }
- };
- int main(){
- setlocale(LC_ALL, "Russian");
- double balu;
- cout << "Enter your score" << endl;
- cin >> balu;
- double stage;
- cout << "Enter your work exp" << endl;
- cin >> stage;
- student s(balu,stage);
- s.cal();
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement