-
Notifications
You must be signed in to change notification settings - Fork 0
/
License.txt
81 lines (76 loc) · 1.84 KB
/
License.txt
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
75
76
77
78
79
80
81
/**Creating a program to check for eligibility for maximum package.**/
#include<stdio.in>
int main()
{
printf("Welcome to the salary tracking services.");
printf("Please select your Gender");
char G;
scanf("%c", G);
printf("You have choosen %c", G);
if(G=='M')
{
printf("Please state the number of years you have worked previously.");
int w;
scanf(%d", w);
printf("Please state your latest academic degree.");
printf("For PostGraduate, input PG.");
printf("For UnderGraduate, input UG.");
String s;
scanf(%s", s);
if(w>9&&s=="PG")
{
printf(You are eligible for a maximum slary package of:\n Rs.15000);
}
else if(w>9&&s=="UG")
{
printf(You are eligible for a maximum slary package of:\n Rs.10000);
}
else if(w<10&&s=="PG")
{
printf(You are eligible for a maximum slary package of:\n Rs.10000);
}
else if(w<10&&s=="UG")
{
printf(You are eligible for a maximum slary package of:\n Rs.7000);
}
else
{
printf("Wrong input");
}
}
else if(G=='F')
{
printf("Please state the number of years you have worked previously.");
int a;
scanf(%d", a);
printf("Please state your latest academic degree.");
printf("For PostGraduate, input PG.");
printf("For UnderGraduate, input UG.");
String b;
scanf(%s", b);
if(a>9&&b=="PG")
{
printf(You are eligible for a maximum slary package of:\n Rs.15000);
}
else if(a>9&&b=="UG")
{
printf(You are eligible for a maximum slary package of:\n Rs.10000);
}
else if(a<10&&b=="PG")
{
printf(You are eligible for a maximum slary package of:\n Rs.10000);
}
else if(a<10&&b=="UG")
{
printf(You are eligible for a maximum slary package of:\n Rs.7000);
}
else
{
printf("Wrong input");
}
}
else
{
printf("Please select either F or M");
}
}