-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassignment3Q4.cpp
287 lines (240 loc) · 7.09 KB
/
assignment3Q4.cpp
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#include <iostream>
using namespace std;
int main()
{
int day;
int month;
string sign;
for(string start;;){
cout<< "Give your Date of Birth so that I can tell you your sign and horoscope : \n";
cout<< "Day : ";
cin >> day;
cout<< "\n";
cout<< "Month : ";
cin>> month;
cout<< "\n";
//Zodiac sign indication .
if(month == 3)
{
if(day >= 21 && day <= 31)
{
cout<< ">>Your zodiac sign is : Aries" << endl;
sign = "Aries";
}
else
{
cout<< ">>Your zodiac sign is : Pisces"<< endl;
sign = "Pisces";
}
}
else if(month == 4)
{
if(day >= 20 && day <= 30)
{
cout<< ">>Your zodiac sign is : Taurus" << endl;
sign = "Taurus";
}
else
{
cout<< ">>Your zodiac sign is : Aries"<< endl;
sign = "Aries";
}
}
else if(month == 5)
{
if(day >= 21 && day <= 31)
{
cout<< ">>Your zodiac sign is : Gemini" << endl;
sign = "Gemini";
}
else
{
cout<< ">>Your zodiac sign is : Taurus"<< endl;
sign = "Taurus";
}
}
else if(month == 6)
{
if(day >= 22 && day <= 30)
{
cout<< ">>Your zodiac sign is : Cancer" << endl;
sign = "Cancer";
}
else
{
cout<< ">>Your zodiac sign is : Gemini"<< endl;
sign = "Gemini";
}
}
else if(month == 7)
{
if(day >= 23 && day <= 31)
{
cout<< ">>Your zodiac sign is : Leo" << endl;
sign = "Leo";
}
else
{
cout<< ">>Your zodiac sign is : Cancer"<< endl;
sign = "Cancer";
}
}
else if(month == 8)
{
if(day >= 23 && day <= 31)
{
cout<< ">>Your zodiac sign is : Virgo" << endl;
sign = "Virgo";
}
else
{
cout<< ">>Your zodiac sign is : Leo"<< endl;
sign = "Leo";
}
}
else if(month == 9)
{
if(day >= 23 && day <= 30)
{
cout<< ">>Your zodiac sign is : Libra" << endl;
sign = "Libra";
}
else
{
cout<< ">>Your zodiac sign is : Virgo"<< endl;
sign = "Virgo";
}
}
else if(month == 10)
{
if(day >= 23 && day <= 31)
{
cout<< ">>Your zodiac sign is : Scorpio" << endl;
sign = "Scorpio";
}
else
{
cout<< ">>Your zodiac sign is : Libra"<< endl;
sign = "Libra";
}
}
else if(month == 11)
{
if(day >= 22 && day <= 30)
{
cout<< ">>Your zodiac sign is : Saggitarius" << endl;
sign = "Saggittarus";
}
else
{
cout<< ">>Your zodiac sign is : Scorpio"<< endl;
sign = "Scorpio";
}
}
else if(month == 12)
{
if(day >= 22 && day <= 31)
{
cout<< ">>Your zodiac sign is : Capricorn" << endl;
sign = "Capricorn";
}
else
{
cout<< ">>Your zodiac sign is : Saggittarus"<< endl;
sign = "Saggittarus";
}
}
else if(month == 1)
{
if(day >= 20 && day <= 31)
{
cout<< ">>Your zodiac sign is : Aquaris" << endl;
sign = "Aquaris";
}
else
{
cout<< ">>Your zodiac sign is : Capricorn"<< endl;
sign = "Capricorn";
}
}
else if(month == 2)
{
if(day >= 19 && day <= 20)
{
cout<< ">>Your zodiac sign is : Pisces" << endl;
sign = "Pisces";
}
else
{
cout<< ">>Your zodiac sign is : Aquaris"<< endl;
sign = "Aquaris";
}
}
// Horoscope Indication
switch(month)
{
case 3:cout<< ">>Horoscope :\n"<<" Your monthly horoscope indicates that in January ,\n the planets are providing some of the energy you’ll need to pursue a long time goal.";
break;
case 4:cout<<">>Horoscope :\n"<<" This could be the beginning of a travel expedition \n or educational pursuit that can increase your chances for success.";
break;
case 5: cout<<">>Horoscope :\n"<<" Computer technology may be another choice but you will find a way \n to educate yourself now even if it does require some unusual ways to do so.";
break;
case 6: cout<<">>Horoscope :\n"<<" This month will bring a legal matter to your attention.\n Allow your companion to make a suggestion and listen to their advice.";
break;
case 7: cout<<">>Horoscope :\n"<<" Powerful attractions and or habits may push you over the edge.\n Its time to transform things that directly affect your health before they transform you. This period places emphasis on your health this month providing another opportunity to start over.";
break;
case 8: cout<<">>Horoscope :\n"<<" It’s as if it’s your own personal day.\n You feel recharged and energized ready to start many new projects.";
break;
case 9: cout<<">>Horoscope :\n"<<" Create the comfortable home environment you’ve always dreamed of.\n Working from a home office may be a better alternative then past choices.";
break;
case 10:cout<<">>Horoscope :\n"<<" Be versatile and creative in applying your job skills and \n watch earning abilities improve.";
break;
case 11:cout<<">>Horoscope :\n"<<" Friends come to your rescue and set you straight about future plans.";
break;
case 12:cout<<">>Horoscope :\n"<<" It’s all about interactions with others and of what value that may provide to improve your current status.\n Improve your people skills and maintain a healthy balance between personal and professional life.";
break;
case 1:cout<<">>Horoscope :\n"<<" Observe birds, racoons and other animals in the wild \n to get a better perspective of your place on earth.";
break;
case 2:cout<<">>Horoscope :\n"<<" Get organized in preparation by releasing stress.\n Try dance or exercise therapy for relief.";
break;
}
//Element indication
string element;
if(sign == "Aries" || sign == "Leo" || sign == "Saggittarus")
{
element = "Fire";
cout<< "\nYour are of element : "<< element <<endl;
cout<< "Thus you are compatible with other signs of same element like, Leo, Saggitarus and Aries itself." << endl;
}
else if(sign == "Taurus" ||sign == "Virgo" || sign == "Capricorn")
{
element = "Earth";
cout<< "\nYour are of element : "<< element <<endl;
cout<< "Thus you are compatible with other signs of same element like, Taurus, Virgo and Capricorn itself." << endl;
}
else if(sign == "Gemini" || sign == "Libra" ||sign == "Aquarius")
{
element = "Air";
cout<< "\nYour are of element : "<< element <<endl;
cout<< "Thus you are compatible with other signs of same element like, Gemini, Libra and Aquarius itself." << endl;
}
else if(sign == "Cancer" ||sign == "Scorpio" ||sign == "Pisces")
{
element = "Water";
cout<< "\nYour are of element : "<< element <<endl;
cout<< "Thus you are compatible with other signs of same element like, Cancer, Scorpio and Pisces itself." << endl;
}
cout<<"\n\n\n >>To recalculate type Y or N to terminate : ";
cin>> start;
if(start == "N")
{
cout<<"Have a nice day :) ";
break;
}
else
{
cout<< "\n\n";
continue;
}
}
}