MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / Education

Class Education

Lab_17/Education.cpp:12–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10void F_First_Program_Menu();
11
12class Education {
13protected:
14 int HPQ;
15public:
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
48class Staff {
49protected:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected