-
Notifications
You must be signed in to change notification settings - Fork 29
/
SP0204_MBM FUN ZONE CODE.c
1378 lines (1179 loc) · 46.9 KB
/
SP0204_MBM FUN ZONE CODE.c
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <conio.h>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#define WON 0
#define LOSE 1
int main( ){
// THIS CODE IS COMPATIBLE FOR HALF SCREEN
// In this main function we used simple switch case pattern to jump on the another functions of our team details and another is to enter the fun zone
int ch,press;
char choice;
system("cls");
printf("\n\n");
printf("\t\t\t\tHola peeps!!\n\n");
printf("We the team members of SP0204 are here to introduce you with an exciting arena\nof MBM . \n\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" *\t\t\t\t\t *\n");
printf(" * MBM FUN ZONE *\n");
printf(" *\t\t\t\t\t *\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n\n\n");
printf("press 1 . for entering into FUN ZONE\n\n");
printf("press 2 . To get familar with our team members\n\n");
printf("press 0 . To exit\n\n");
printf("ENTER YOUR CHOICE:");
scanf("%d",&press);
switch(press){
case 0:
exit(0);
break;
case 1:
enterfun_zone();
break;
case 2:
team_details();
break;
default:
printf("invalid choice.....");
}
return 0;
}
int enterfun_zone(){
// In this enterfun_zone function we also used a simple switch case pattern to jump on the functions of our game.....
int ch;
while(1){
system("cls");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" *\t\t\t\t\t *\n");
printf(" * WELCOME TO MBM FUN ZONE *\n");
printf(" *\t\t\t\t\t *\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n\n\n");
printf("1. TIC TAC TOE\n");
printf("2. MATCHSTICK GAME\n");
printf("3. FORTUNE TRIO \n");
printf("4. KAUN BANEGA BOLLYWOOD STAR\n");
printf("5. FIND THE MYSTERY NUMBERS\n");
printf("6. DICE ROLLER GAME\n");
printf("7. GO TO HOME PAGE\n\n");
printf("enter your choice:");
scanf("%d", &ch);
switch(ch){
case 1:
tic_tac_toe();
break;
case 2:
matchstick_game();
break;
case 3:
trio();
break;
case 4:
kbbs();
break;
case 5:
mystery_numbers();
break;
case 6:
dice_roller();
break;
case 7:
main();
break;
}
}
return 0;
}
char square[10] = { 'o', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
int checkwin();
void board();
int tic_tac_toe()
{ // here is our first game that is tic_tac_toe() which is made by our whole team
int player = 1, i, choice;
i=checkwin();
char mark;
do
{
board();
player = (player % 2) ? 1 : 2;
printf(" Player %d, enter a number: ", player);
scanf("%d", &choice);
mark = (player == 1) ? 'X' : 'O';
if (choice == 1 && square[1] == '1')
square[1] = mark;
else if (choice == 2 && square[2] == '2')
square[2] = mark;
else if (choice == 3 && square[3] == '3')
square[3] = mark;
else if (choice == 4 && square[4] == '4')
square[4] = mark;
else if (choice == 5 && square[5] == '5')
square[5] = mark;
else if (choice == 6 && square[6] == '6')
square[6] = mark;
else if (choice == 7 && square[7] == '7')
square[7] = mark;
else if (choice == 8 && square[8] == '8')
square[8] = mark;
else if (choice == 9 && square[9] == '9')
square[9] = mark;
else
{
printf(" Invalid move ");
player--;
getch();
}
i = checkwin();
player++;
}while (i == - 1);
board();
if (i == 1)
{
printf(" ==>\aPlayer %d win ", --player);
square[1] = '1';
square[2] = '2';
square[3] = '3';
square[4] = '4';
square[5] = '5';
square[6] = '6';
square[7] = '7';
square[8] = '8';
square[9] = '9';
}
else{
printf(" ==>\aGame draw");
square[1] = '1';
square[2] = '2';
square[3] = '3';
square[4] = '4';
square[5] = '5';
square[6] = '6';
square[7] = '7';
square[8] = '8';
square[9] = '9';
}
printf("\n\npress enter to go back to fun page");
getch();
return 0;
}
int checkwin()
{ // this function is made to check the winning of player
if (square[1] == square[2] && square[2] == square[3])
return 1;
else if (square[4] == square[5] && square[5] == square[6])
return 1;
else if (square[7] == square[8] && square[8] == square[9])
return 1;
else if (square[1] == square[4] && square[4] == square[7])
return 1;
else if (square[2] == square[5] && square[5] == square[8])
return 1;
else if (square[3] == square[6] && square[6] == square[9])
return 1;
else if (square[1] == square[5] && square[5] == square[9])
return 1;
else if (square[3] == square[5] && square[5] == square[7])
return 1;
else if (square[1] != '1' && square[2] != '2' && square[3] != '3' &&
square[4] != '4' && square[5] != '5' && square[6] != '6' && square[7]
!= '7' && square[8] != '8' && square[9] != '9')
return 0;
else
return - 1;
}
/*********
FUNCTION TO DRAW BOARD OF TIC TAC TOE WITH PLAYERS MARK
********/
void board()
{
system("cls");
printf(" ***WELCOME TO THE GAME***\n\n");
printf(" \xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\n");
printf("\t Tic Tac Toe");
printf("\n \xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\n\n");
printf(" Player 1 (X) - Player 2 (O)\n\n");
printf(" \xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\n");
printf("\t| | | |\n");
printf("\t| %c | %c | %c |\n", square[1], square[2], square[3]);
printf("\t|_____|_____|_____|\n");
printf("\t| | | |\n");
printf("\t| %c | %c | %c |\n", square[4], square[5], square[6]);
printf("\t|_____|_____|_____|\n");
printf("\t| | | |\n");
printf("\t| %c | %c | %c |\n", square[7], square[8], square[9]);
printf("\t| | | |\n");
printf(" \xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\n\n");
}
int matchstick_game()
{ // this game is made by Khushbu Bijawat and the rules of this game is mentioned below in the code
srand(time(0));
int mstick=21,user,computer;
system("cls");
printf(" ***WELCOME TO THE GAME***\n\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" *\t\t\t\t\t *\n");
printf(" * MATCHSTICK GAME *\n");
printf(" *\t\t\t\t\t *\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf("\nRULES:\nThere are 21 matchsticks\n\nThe computer asks the player to pick 1, 2, 3, 4 or 5 matchsticks.\n\nAfter the person picks,the computer does its picking.\n\nwhoever is forced to pick up the last matchstick losses the game...\n\nYou can pick minimum 5 sticks at a time");
while(1)
{
printf("\n\n--------------------------------------------------------------------------------\n");
printf("\n your turn %c\n",1);
printf("\n pick stick:");
scanf("%d",&user);
mstick=mstick-user;
if(mstick<1)
{
printf("\n Oops last stick is for you");
printf("\n you lost this game, better luck for next time");
break;
}
if(user>5)
{
printf("\n you cannot pick more than 5 sticks at a time ,try again");
continue;
}
computer= (rand()%5)+1;
printf("\n computer picked %d sticks", computer);
mstick=mstick-computer;
if(mstick<=1)
{
printf("\n you won%c",2);
break;
}
}
printf("\n\n THANK YOU%c",3);
printf("\n\nEnter any key to go back to fun page:");
getch();
}
int trio(){
// this is an fun activity which consist three intresting activities like know about your zodiac sign, future prediction & personality traits and this game is made by Karishma Sharma
// In this game we also used the switchcase pattern to enter the functions of these three activities
int option,dob,z,day,month,fortune_cookie;
char str1[10] , c,ans,C;
char colour;
system("cls");
printf(" ***WELCOME TO THE GAME***\n\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" *\t\t\t\t\t *\n");
printf(" * FORTUNE TRIO *\n");
printf(" *\t\t\t\t\t *\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" About the game:-\n");
printf("\nSo as the name tells ,this game consists of three games :\n 1. Zodiac Teller \n 2. Future prediction \n 3. Personality Traits ");
printf("\n\n#INSTRUCTIONS: \n");
printf("\n|| %c In Zodiac teller you are supposed to enter your birth date and month number .\n For ex- 7 in date and 3 in month says 7 march ,your zodiac will be displayed according to it .\n",2);
printf("\n|| %c In Future prediction you are supposed to enter your favourite number between [0 to 10], and you got to know about your future.\n ",2);
printf("\n|| %c In Personality traits , you are required to enter a colour from given options , then according to that color it will display your about your personality.\n",2);
printf("\nEnter your name : \t");
scanf("%s",str1);
system("cls");
printf("\n\n\n\n\n\n\n\n \t********************************************************\n");
printf(" \t* *\n");
printf(" \t* *\n");
printf(" \t* Here we go!!!!!!!!!!!%c *\n",2);
printf(" \t* *\n");
printf(" \t* *\n");
printf(" \t* press enter to continue... *\n");
printf(" \t* *\n");
printf(" \t* *\n");
printf(" \t********************************************************");
do{
getch();
system("cls");
printf("\n\nEnter the number of what you want to know : \n");
printf("\n press 1 - to know your zodiac sign\n");
printf("\n press 2 - future prediction\n");
printf("\n press 3 - personality traits\n");
printf("\n press 4 - to go back to home page\n");
scanf("%d",&option);
switch(option){
case 4:
enterfun_zone();
break;
case 1:
// In the first activity we have to enter our birth date to know our zodiac sign
printf("Enter birth day\n");
scanf("%d",&day);
printf("enter birth month\n");
scanf("%d", &month);
if(month > 12 && month < 0 || day > 31 && day < 1 ) {
printf("invalid month and day\n"); }
else if(month == 10 && day>=23||month == 11 && day<=21)
{
printf("\nYour zodiac sign is scorpion and your birthstone is topaz\n");
printf("Scorpio is one of the most misunderstood signs of the zodiac.\n Because of its incredible passion and power, Scorpio is often mistaken for a fire sign.\n In fact, Scorpio is a water sign that derives its strength from the psychic, emotional realm.\n");}
else if(month == 9 && day >=23 || month == 10 && day <= 22)
{
printf("\nYour zodiac sign is libra and your birthstone is opal\n");
printf("Libra is an air sign represented by the scales (interestingly, the only inanimate object of the zodiac), an association that reflects Libra's fixation on balance and harmony.\n Libra is obsessed with symmetry and strives to create equilibrium in all areas of life. \n");
}
else if(month == 8 && day >=23 || month == 9 && day <= 22)
{
printf("\nYour zodiac sign is virgo and your birthstone is sapphire\n");
printf("Virgo is an earth sign historically represented by the goddess of wheat and agriculture, an association that speaks to Virgos deep-rooted presence in the material world.\n Virgos are logical, practical, and systematic in their approach to life.\n This earth sign is a perfectionist at heart and isnt afraid to improve skills through diligent and consistent practice.\n");
}
else if(month == 7 && day >=23 || month == 8 && day <= 22)
{
printf("\nYour zodiac sign is leo and your birthstone is peridot\n");
printf("Roll out the red carpet because Leo has arrived.\n Leo is represented by the lion and these spirited fire signs are the kings and queens of the celestial jungle.\n Theyre delighted to embrace their royal status: Vivacious, theatrical, and passionate, Leos love to bask in the spotlight and celebrate themselves\n");
}
else if(month == 6 && day >=21 || month == 7 && day <= 22)
{
printf("\nYour zodiac sign is cancer and your birthstone is ruby\n");
printf("Cancer is a cardinal water sign.\n Represented by the crab, this crustacean seamlessly weaves between the sea and shore representing Cancers ability to exist in both emotional and material realms.\n Cancers are highly intuitive and their psychic abilities manifest in tangible spaces: \nFor instance, Cancers can effortlessly pick up the energies in a room.\n");
}
else if(month == 5 && day >=21 || month == 6 && day <= 20)
{
printf("\nYour zodiac sign is gemini and your birthstone is pearl\n");
printf("Have you ever been so busy that you wished you could clone yourself just to get everything done? Thats the Gemini experience in a nutshell. Appropriately symbolized by the celestial twins, this air sign was interested in so many pursuits that it had to double itself.\n");
}
else if(month == 4 && day >=20 || month == 5 && day <= 20)
{
printf("\nYour zodiac sign is taurus and your birthstone is emerald\n");
printf("Taurus is an earth sign represented by the bull.\n Like their celestial spirit animal, Taureans enjoy relaxing in serene, bucolic environments surrounded by soft sounds, soothing aromas, and succulent flavors.\n");
}
else if(month == 3 && day >=21 || month == 4 && day <= 19)
{
printf("\nYour zodiac sign is aries and your birthstone is aries\n");
printf("Aries loves to be number one, so its no surprise that these audacious rams are the first sign of the zodiac. \nBold and ambitious, Aries dives headfirst into even the most challenging situations.\n");
}
else if(month == 2 && day >=19 || month == 3 && day <= 20)
{
printf("\nYour zodiac sign is pisces and your birthstone is aquamarine\n");
printf("Pisces characters are regarded for being among the most sympathetic of the zodiac signs, and they will go to great lengths to ensure the happiness of those around them.\n They're also creative and imaginative.\n Pisces are sympathetic and sensitive to others' feelings.\n");
}
else if(month == 1 && day >=20 || month == 2 && day <= 18)
{
printf("\nYour zodiac sign is Aquarius and your birthstone is amethyst\n");
printf("Despite the \"aqua\" in its name, Aquarius is actually the last air sign of the zodiac.\n Aquarius is represented by the water bearer, the mystical healer who bestows water, or life, upon the land.\n Accordingly, Aquarius is the most humanitarian astrological sign.\n");
}
else if(month == 12 && day >=22 || month == 1 && day <= 19)
{
printf("\nYour zodiac sign is Capricorn and your birthstone is garnet\n");
printf("The last earth sign of the zodiac, Capricorn is represented by the sea goat, a mythological creature with the body of a goat and the tail of a fish.\n Accordingly, Capricorns are skilled at navigating both the material and emotional realms.\n");
}
else if(month == 11 && day >=22 || month == 12 && day <= 21)
{
printf("\nYour zodiac sign is saggitarius and your birthstone is turquoise\n");
printf("Represented by the archer, Sagittarians are always on a quest for knowledge.\n The last fire sign of the zodiac, Sagittarius launches its many pursuits like blazing arrows, chasing after geographical, intellectual, and spiritual adventures.\n");
}
else
printf("\nERROR");
break;
case 2:
// in this activity we have to enter our lucky number from 1 to 10 to know about our future
printf("\n\nTaddahhh!! welcome to mystry world ! there's something special for you %c%c \n\n",1,3);
printf("Enter your lucky number from [1 to 10] to know about your future:\n");
scanf("%d",&fortune_cookie);
if(fortune_cookie ==1){
printf("you will get old, lonely and have 3 cats named Buddy, Jim, and Fernando.That's sad!\n\n");}
else if(fortune_cookie ==2){
printf("you will move to paris after you get married. You will have three kids, two boys, and one girl, and you will have a golden retriever. Amazing! I guess it's happy ever after%c ", 3); }
else if(fortune_cookie == 3){
printf("you will not be very wealthy but with a steady job. You will be married and have no kids. You will live in suburban village in connecticut. What can I say more...\n\n");}
else if(fortune_cookie == 4){
printf("The picture is getting clearer....OK, I see it! You will be a millionaire. You will make $1,000,000 a year or more. You will live in a mansion of about 9,000 square feet. You will have three kids. Your cars will be a Range Rover, a Lamborghini and an Aston Martin. You will die at age 60 from smoking and drinking too much.\n\nOh my god, my crazy crystal ball shatters, Scotty beam me up.\n\nDon't like what my crazy crystal ball foretold for you?\n\nNo worries! This was just for fun. YOU CONTROL\n\nYOUR FUTURE! So make the most of it! Good luck!%c\n\n",2);}
else if(fortune_cookie ==5){
printf("Everything has finally fallen into place and you will get to adopt a pet to keep you company! It may not be the pet of your dreams in the beginning, but you'll quickly realize how important its role is in your life.\n\n");}
else if(fortune_cookie == 6){
printf("If you haven't already, you will find your Charming and live in a beautiful and magical world of flower petals, bunnies, and cupcakes. Almost everything will work out for you. Together you will slay any obstacles that arise!\n\n");}
else if(fortune_cookie == 7){
printf("You will be vampire soon. It's all just star to make some distance from your loved ones...you are dangerous for them.\n\n");}
else if(fortune_cookie == 8){
printf("you will get a lottery of 1 billion rupee..and from that money you will open a software company and will marry to a daughter of richest man of world....That's quite intresting.%c\n\n",2);}
else if(fortune_cookie == 9){
printf("you are a dog lover and you will adopt 10 different breed dogs...and your life will be going so happily with all these cute dogs.That's great..%c\n\n ", 1);}
else if(fortune_cookie == 10){
printf("You will become an politician in future.....and do the great changes for the welfare for your country...you will become the unforgettable politician for your country that's really good.%c \n\n", 1);}
break;
case 3:
// In this activity we have to enter our favourite colour to know about our personality
while(colour<=5){
system("cls");
printf("CHOOSE YOUR FAVOURITE COLOUR FROM BELOW OPTIONS:\n");
printf("1. BLACK\n");
printf("2. RED\n");
printf("3. YELLOW \n");
printf("4. PINK \n");
printf("5. PURPLE\n");
printf("6. exit\n\n");
printf("enter your favourite colour to know your personality traits\n or press 6 to exit%c : ",1);
scanf("%d", &colour);
system("cls");
switch(colour){
case 1:
black();
break;
case 2:
red();
break;
case 3:
yellow();
break;
case 4:
pink();
break;
case 5:
purple();
break;
default:
printf("\n\n\t\t\tTHANK YOU%c...!\n\t\t\tHope you enjoyed it...%c\n",3,2);
break;
}
}
}
printf("\t\t\nPress C to continue.... \n or \n\n\t\tPress any Key To Exit\n");
scanf("%c",&c);
getch();
}
while(ans == 'c','C');
return 0;
}
int black(){
system("cls");
printf("BLACK\n\nBlack can mean so many different things: boldness, uniqueness, mystery, intrigue, and power. But it can also mean unhappiness, darkness, sadness, pain, or grief. Black is associated with death and mourning, but can also be associated with strength, luxury, and intensity.\n\n");
printf("Personality traits of black:\n\nBold\nRisk-taker\nPerhaps a little impulsive at times\nSerious \(maybe a little too serious)\n You are strong and command a sense of respect from your peers\nYou are trustworthy\nPerhaps a little intimidating\n");
getch();
return 0;
}
int red(){
printf("RED \n\nRed is a bold color choice that's been associated with excitement, passion, danger, thrill, energy, and action. \nYou may notice that some brands use red for their \"call to action\" buttons (\"order now,\" \"shop now\" etc.). This is because red is an intense color that is able to provoke strong emotions which can encourage you to buy things.\nPersonality traits of red:\nBold\nThrill-seeker\nAdventure-lover\nCan be a little impulsive\ncan be perceived as intimidating\n");
getch();
return 0;
}
int yellow(){
printf("YELLOW\n\nHappiness, positivity, and warm summer sun is what yellow reminds us of. Brands may use a splash of yellow in their logo to make you feel happy when you see their products. Many \"free shipping\" icons on websites may be yellow to attract you to something that is cheerful and positive.\n");
printf("\nPersonality traits of yellow:\nA positive spirit\nOptimistic\nCheerful\nAdventurous\nCalming for those around them\nInfectious smiles and happiness that spreads to each person they encounter\n");
getch();
return 0;
}
int pink(){
printf("PINK\n\nPink is often associated with femininity, playfulness, and love, but pink can also be perceived as a somewhat immature color. You will notice a lot of pink in a child's toy packaging or brands to signal playful, whimsical fun. Other brands (Victoria Secret for example) have signified the color to mean something cute, fun, playful\n");
printf("\nPersonality traits of pink:\nFun\nPlayful\nMaybe a little naive\nYou wear your heart on your sleeve and aren't afraid to express your emotions\nLove and family are important to you\n");
getch();
return 0;
}
int purple(){
printf("PURPLE\n\nPurple can be connected to royalty, power, privilege, wisdom, and spirituality. Purple can be something of a frustrating color as well, as it can cause feelings of frustration or be perceived as arrogant - this is why websites and brands (Hallmark, Yahoo) will use a splash of purple or mix purple with a warmer tone such as white.\n");
printf("\nPersonality traits of purple:\n\nQuick-witted\nCraves own identity\nLoves unique things and wants to stand out from the pack\nDances to the music no one else can hear\nYou thrive on creativity and inspiration strikes you randomly, allowing you to tune out the world and focus on it\n");
getch();
return 0;
}
int kbbs()
{
// it is an simple and intresting quiz game on bollywood which is made by Aparna Jain
//In this quiz there are 10 questions on bollywood movies if we know the correct answer then we got 3 marks and if submit the wrong answer then we got -1 marks and if want help then we have only two options left just like the lifeline 50-50 in kbc and then after using that lifeline you got the correct answer then you got 2 marks
int score=0;
int answer;
system("cls");
printf(" ***WELCOME TO THE GAME***\n\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf(" *\t\t\t\t\t *\n");
printf(" * KAUN BANEGA BOLLYWOOD STAR *\n");
printf(" *\t\t\t\t\t *\n");
printf(" *\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd*\n");
printf("\nRULES:- \n\n #1. The game has 10 questions..... \n\n#2. You get +3 for each correct answer & -1 for each wrong/invalid answer and \n 0 for not answering.\n");
printf("\n\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\n");
printf("Press any key to play the game\n");
getch();
system("cls");
printf("\n\nQ1)Which movie is this popular line from: %cdosti ka ek usool hai madam no sorry ,no thank you.%c? \n", 34,34);
printf("[1]Kuch kuch hota hai\t[2]Dilwale dulhania le jayenge\n[3] Maine pyar kiya\t[4]Andaz apna apna\n");
scanf("%d", &answer);
if(answer==3)
{
printf("That is Correct!%c\n", 2);
score=score+3;
printf(" you got %d marks\n",score);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Maine pyar kiya \t [2] Kuch kuch hota hai\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score=score+2;
printf("You got %d marks\n",score);
}
else
{
printf("Wrong answer..!\n");
score=score-1;
printf("You got %d marks\n",score);
}
}
}
if(answer==2)
{
score=score+0;
printf(" you got %d marks\n\n",score);
}
printf("-----------------------------------------------------\n");
printf("\nQ2) What was the name of HOD of ICE college in %c3 idiots%c?\n", 34,34);
printf("[1] Virus\t[2] silencer\n[3] phunsung\t[4] Chatur\n");
scanf("%d", &answer);
int score2=0;
if(answer==1)
{
printf("That is Correct!%c\n",2);
score2=score2+3;
printf(" you got %d marks\n",score2);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Virus \t [2] Silencer\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score2=score2+2;
printf("You got %d marks\n",score2);
}
else
{
printf("Wrong answer..!\n");
score2=score2-1;
printf("You got %d marks\n",score2);
}
}
}
if(answer==2)
{
score2=score2+0;
printf(" you got %d marks\n\n",score2);
}
printf("-----------------------------------------------------\n");
printf("\nQ3) What game do they play on the train in ye Jawaani hai diwaani movie?\n");
printf("[1] Never have i ever\t[2] Dumb charades\n[3] antakshari\t[4] dumsaraj\n");
scanf("%d", &answer);
int score3=0;
if(answer==1)
{
printf("That is Correct!%c\n",2);
score3=score3+3;
printf(" you got %d marks\n",score);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Never have i ever \t [2] Dumb charades\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score3=score3+2;
printf("You got %d marks\n",score3);
}
else
{
printf("Wrong answer..!\n");
score3=score3-1;
printf("You got %d marks\n",score3);
}
}
}
if(answer==2)
{
score3=score3+0;
printf(" you got %d marks\n\n",score3);
}
printf("-----------------------------------------------------\n");
printf("\nQ4) What was the name of the circus in movie %cPhir Hera Pheri%c?\n", 34,34);
printf("[1] The Great Ramayan Circus\t[2] The Great Golden Circus\n[3] The Great Carniwal Circus\t[4] The Great Royal Circus\n");
scanf("%d", &answer);
int score4=0;
if(answer==4)
{
printf("That is Correct!%c\n",2);
score4=score4+3;
printf(" you got %d marks\n",score4);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] The Great Royal Circus \t [2] The Great Ramayan circus \n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score4=score4+2;
printf("You got %d marks\n",score4);
}
else
{
printf("Wrong answer..!\n");
score4=score4-1;
printf("You got %d marks\n",score4);
}
}
}
if(answer==2)
{
score4=score4+0;
printf(" you got %d marks\n\n",score4);
}
printf("-----------------------------------------------------\n");
printf("\nQ5) Fill in the blank- %cIss kahani mai Emotion hai,___hai,Tragedy hai%c (movie-->sholay)\n",34,34);
printf("[1] Action\t[2] Romance\n[3] Drama\t[4] Feeling\n");
scanf("%d", &answer);
int score5=0;
if(answer==3)
{
printf("That is Correct!%c\n",2);
score5=score5+3;
printf(" you got %d marks\n",score5);
}
else
{
printf("Wrong Answer..!\n");
printf("\n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Drama \t [2] Action\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score5=score5+2;
printf("You got %d marks\n",score5);
}
else
{
printf("Wrong answer..!\n");
score5=score5-1;
printf("You got %d marks\n",score5);
}
}
}
if(answer==2)
{
score5=score5+0;
printf(" you got %d marks\n\n",score5);
}
printf("-----------------------------------------------------\n");
printf("\nQ6) What was the victory symbol of shersaah%c?\n",3);
printf("[1] Oh yeah yeah\t[2] Durge mata ki jay\n[3] Ye Dil%c maange more\t[4] Jai Hind\n",3);
scanf("%d", &answer);
int score6=0;
if(answer==3)
{
printf("That is Correct!%c\n",2);
score6=score6+3;
printf(" you got %d marks\n",score6);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Ye Dil%c maange more \t [2] Durge mata ki jay\n",3);
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score6=score6+2;
printf("You got %d marks\n",score6);
}
else
{
printf("Wrong answer..!\n");
score6=score6-1;
printf("You got %d marks\n",score6);
}
}
}
if(answer==2)
{
score6=score6+0;
printf(" you got %d marks\n\n",score6);
}
printf("-----------------------------------------------------\n");
printf("\nQ7) What is the name of the village where Vivek and sadhna after marriage (movie-->Hum saath saath hain)?\n");
printf("[1] Ramgarh\t[2] Raypur\n[3] Surygarh\t[4] Rampur\n");
scanf("%d", &answer);
int score7=0;
if(answer==4)
{
printf("That is Correct!%c\n",2);
score7=score7+3;
printf(" you got %d marks\n",score7);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options from which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] Rampur \t [2] Ramgarh\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score7=score7+2;
printf("You got %d marks\n",score7);
}
else
{
printf("Wrong answer..!\n");
score7=score7-1;
printf("You got %d marks\n",score7);
}
}
}
if(answer==2)
{
score7=score7+0;
printf(" you got %d marks\n\n",score7);
}
printf("-----------------------------------------------------\n");
printf("\nQ8) Nisha plans a 'special seat' for Prem and his friends when they arrive for the wedding. what is so special about the seat (Movie-->Hum aapke hai kaun)\n");
printf("[1] It's stuffed with papad\t[2] It is broken\n[3] It is not covered properly\t[4] It is away from the crowd\n");
scanf("%d", &answer);
int score8=0;
if(answer==1)
{
printf("That is Correct!%c\n",2);
score8=score8+3;
printf(" you got %d marks\n",score8);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options in which you have to answer:");
scanf("%d",&answer);
printf("\n");
if(answer==1)
{
printf("[1] It is stuffed with papad\t [2] It is broken\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score8=score8+2;
printf("You got %d marks\n",score8);
}
else
{
printf("Wrong answer..!\n");
score8=score8-1;
printf("You got %d marks\n",score8);
}
}
}
if(answer==2)
{
score8=score8+0;
printf(" you got %d marks\n\n",score8);
}
printf("-----------------------------------------------------\n");
printf("\nQ9) Who tells the story of Anjali and Rohit to little Anjali in movie %cKuch kuch hota hai%c?\n",34,34);
printf("[1] Her grandmother\t[2] Rohit\n[3] a letter which is given by her mom with a gift\t[4] Her teacher\n");
scanf("%d", &answer);
int score9=0;
if(answer==3)
{
printf("That is Correct!%c\n",2);
score9=score9+3;
printf(" you got %d marks\n",score9);
}
else
{
printf("Wrong Answer..!\n");
printf(" \n");
printf("do you want any help?\n");
printf("[1] Yes \t [2] No \n");
printf("you will be given two options in which you have to answer:");
scanf("%d",&answer);
printf(" \n");
if(answer==1)
{
printf("[1] A leeter which is given by her mom with a gift\t [2] her grandmother\n");
scanf("%d",&answer);
if(answer==1)
{
printf("That is correct!%c\n",2);
score9=score9+2;
printf("You got %d marks\n",score9);
}
else
{
printf("Wrong answer..!\n");
score9=score9-1;
printf("You got %d marks\n",score9);
}
}
}
if(answer==2)
{
score9=score9+0;
printf(" you got %d marks\n\n",score9);
}
printf("-----------------------------------------------------\n");
printf("\nQ10) Who did change the silencer's speech? \n");
printf("[1] Rancho\t[2] Farhan\n[3] Raju\t[4] Virus\n");
scanf("%d", &answer);
int score10=0;
if(answer==1)
{