-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuesNo7.cpp
More file actions
74 lines (56 loc) · 1.82 KB
/
QuesNo7.cpp
File metadata and controls
74 lines (56 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include <iostream>
#include <string>
using namespace std;
struct Labour
{
int age;
string name;
float salary;
char building;
};
struct Manager
{
int earning;
string name;
float age;
string location;
};
int main()
{
Labour labour;
Manager manager;
for (int i = 0; i <= 2; i++)
{
cout << endl;
cout << "Enter the age of labour no:" << i + 1 << endl;
cin >> labour.age;
cout << "Enter the name of labour no:" << i + 1 << endl;
cin >> labour.name;
cout << "Enter the salary of labour no:" << i + 1 << endl;
cin >> labour.salary;
cout << "Enter the buildig name in which labour no:" << i + 1 << endl;
cin >> labour.building;
cout << "The age of labour no" << i + 1 << ":"
<< " is " << labour.age << "." << endl;
cout << "The name of labour no" << i + 1 << ":"
<< " is " << labour.name << "." << endl;
cout << "The salary of labour no" << i + 1 << ":"
<< " is " << labour.salary << "." << endl;
cout << "The building of labour no" << i + 1 << ":"
<< " is " << labour.building << "." << endl;
}
cout << endl;
cout << "Enter how much manager earns daily:" << endl;
cin >> manager.earning;
cout << "Enter the name of manager :" << endl;
cin >> manager.name;
cout << "Enter the age of manager:" << endl;
cin >> manager.age;
cout << "Enter the location of manager:" << endl;
cin >> manager.location;
cout << "The manager earns daily is " << manager.earning << "." << endl;
cout << "The name of manager is " << manager.name << "." << endl;
cout << "The age of manager is " << manager.age << "." << endl;
cout << "The loctaion of manager is " << manager.location << "." << endl;
return 0;
}