| 10 | void F_First_Program_Menu(); |
| 11 | |
| 12 | class Education { |
| 13 | protected: |
| 14 | int HPQ; |
| 15 | public: |
| 16 | Education() { |
| 17 | HPQ = 0; |
| 18 | } |
| 19 | void getdata() { |
| 20 | cout << "\n1. Undergraduate 2. Graduate 3. Masters Degree 4. PHD\n"; |
| 21 | cout << "Enter Educational Qualification: " ; |
| 22 | cin >> HPQ; |
| 23 | if (HPQ == 1 || HPQ == 2 || HPQ == 3 || HPQ == 4) { |
| 24 | } |
| 25 | else { |
| 26 | cout << "Invalid Educational Qualification. Try one more time.\n"; |
| 27 | //Sleep(0700); Sleep(0700); |
| 28 | Education::getdata(); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | void showdata() { |
| 33 | if (HPQ == 1) { |
| 34 | cout << "Educational Qualification: Undergraduate\n"; |
| 35 | } |
| 36 | else if (HPQ == 2) { |
| 37 | cout << "Educational Qualification: Graduate\n"; |
| 38 | } |
| 39 | else if (HPQ == 3) { |
| 40 | cout << "Educational Qualification: Masters Degree\n"; |
| 41 | } |
| 42 | else if (HPQ == 4) { |
| 43 | cout << "Educational Qualification: PHD\n"; |
| 44 | } |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | class Staff { |
| 49 | protected: |
nothing calls this directly
no outgoing calls
no test coverage detected