mythological calender using c++
DESCRIPTION
Mythological calender using C++TRANSCRIPT
![Page 1: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/1.jpg)
By :
Sushil Kumar Mishra
ECE – I (2nd Semester)
05311502809
![Page 2: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/2.jpg)
/* This code is used to determine certain information by giving the
necessary data */
/*Author: Sushil Kumar Mishra */
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <DOS.h>
int menu();
int year, month, day;
void main()
{
start:
clrscr();
printf("Enter Year (1970-2010): ");
scanf("%d",&year);
if (year<1970||year>2010)
goto start;
skip:
printf("\nEnter Your Month No. (1-12): ");
scanf("%d",&month);
![Page 3: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/3.jpg)
if (month==1)
{
back:
printf("\nEnter Day (1-31): ");
scanf("%d",&day);
if (day<=19)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JANUARY.");
printf("\nYour BirthStone is GARNET.");
printf("\nYou are a CAPRICORN.");
}
else if (day>19&&day<=31)
{
clrscr();
printf("\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JANUARY.");
printf("\nYour BirthStone is GARNET.");
printf("\nYou are an AQUARIUS.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back;}
}
![Page 4: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/4.jpg)
else if (month==2)
{
back1:
printf("\nEnter Day (1-29):");
scanf("%d",&day);
if (day<=18)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of FEBRUARY.");
printf("\nYour BirthStone is AMETHYST.");
printf("\nYou are an AQUARIUS.");
}
else if (day>18&&day<=29)
{
clrscr();
printf("\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of FEBRUARY.");
printf("\nYour BirthStone is AMETHYST.");
printf("\nYou are a PISCES.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back1;}
}
else if (month==3)
![Page 5: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/5.jpg)
{
back2:
printf("\nEnter Day (1-31):");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of MARCH.");
printf("\nYour BirthStone is AQUAMARINE or BLOODSTONE.");
printf("\nYou are a PISCES.");
}
else if (day>20&&day<=31)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of MARCH.");
printf("\nYour BirthStone is AQUAMARINE or BLOODSTONE.");
printf("\nYou are an ARIES.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back2;}
}
else if (month==4)
{
![Page 6: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/6.jpg)
back3:
printf("\nEnter Day (1-30):");
scanf("%d",&day);
if (day<=19)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of APRIL.");
printf("\nYour BirthStone is DIAMOND.");
printf("\nYou are an ARIES.");
}
else if (day>19&&day<=30)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of APRIL.");
printf("\nYour BirthStone is DIAMOND.");
printf("\nYou are a TAURUS.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back3;}
}
else if (month==5)
{
![Page 7: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/7.jpg)
back4:
printf("\nEnter Day (1-31):");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of MAY.");
printf("\nYour BirthStone is EMERALD.");
printf("\nYou are a TAURUS.");
}
else if (day>20&&day<=31)
{
clrscr();
printf("\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of MAY.");
printf("\nYour BirthStone is EMERALD.");
printf("\nYou are a GEMINI.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back4;}
}
else if (month==6)
{
back5:
![Page 8: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/8.jpg)
printf("\nEnter Day (1-30):");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JUNE.");
printf("\nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE.");
printf("\nYou are a GEMINI.");
}
else if (day>20&&day<=30)
{
clrscr();
printf("\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JUNE.");
printf("\nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE.");
printf("\nYou are a CANCER.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back5;}
}
else if (month==7)
{
back6:
printf("\nEnter Day (1-31):");
![Page 9: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/9.jpg)
scanf("%d",&day);
if (day<=22)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JULY.");
printf("\nYour BirthStone is RUBY.");
printf("\nYou are a CANCER.");
}
else if (day>22&&day<=30)
{
clrscr();
printf("\nYour date of birth is:%d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of JULY.");
printf("\nYour BirthStone is RUBY.");
printf("\nYou are a LEO.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back6;}
}
else if (month==8)
{
back7:
printf("\nEnter Day (1-31):");
scanf("%d",&day);
![Page 10: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/10.jpg)
if (day<=22)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of AUGUST.");
printf("\nYour BirthStone is PERIDOT or SARDONYX.");
printf("\nYou are a LEO.");
}
else if (day>22&&day<=31)
{
clrscr();
printf("\n\nYour date of birth is:%d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of AUGUST.");
printf("\nYour BirthStone is PERIDOT or SARDONYX.");
printf("\nYou are a VIRGO.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back7;}
}
else if (month==9)
{
back8:
printf("\nEnter Day (1-30):");
scanf("%d",&day);
if (day<=22)
![Page 11: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/11.jpg)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of SEPTEMBER.");
printf("\nYour BirthStone is SAPPHIRE.");
printf("\nYou are a VIRGO.");
}
else if (day>22&&day<=30)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of SEPTEMBER.");
printf("\nYour BirthStone is SAPPHIRE.");
printf("\nYou are a LIBRA.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back8;}
}
else if (month==10)
{
back9:
printf("\nEnter Day (1-31):");
scanf("%d",&day);
if (day<=22)
{
![Page 12: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/12.jpg)
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of OCTOBER.");
printf("\nYour BirthStone is OPAL or TOURMALINE.");
printf("\nYou are a LIBRA.");
}
else if (day>22&&day<=31)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of OCTOBER.");
printf("\nYour BirthStone is OPAL or TOURMALINE.");
printf("\nYou are a SCORPIO.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back9;}
}
else if (month==11)
{
back10:
printf("\nEnter Day (1-30):");
scanf("%d",&day);
if (day<=21)
{
clrscr();
![Page 13: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/13.jpg)
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of NOVEMBER.");
printf("\nYour BirthStone is TOPAZ.");
printf("\nYou are a SCORPIO.");
}
else if (day>21&&day<=30)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of NOVEMBER.");
printf("\nYour BirthStone is TOPAZ.");
printf("\nYou are a SAGITARIUS.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back10;}
}
else if (month==12)
{
back11:
printf("\nEnter Day (1-31):");
scanf("%d",&day);
if (day<=21)
{
clrscr();
![Page 14: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/14.jpg)
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of DECEMBER.");
printf("\nYour BirthStone is TURQUOISE OR ZIRCON.");
printf("\nYou are a SAGITARIUS.");
}
else if (day>21&&day<=31)
{
clrscr();
printf("\n\nYour date of birth is: %d-%d-%d",month,day,year);
menu();
printf("\nYou are born on the month of DECEMBER.");
printf("\nYour BirthStone is TURQUOISE OR ZIRCON.");
printf("\nYou are a CAPRICORN.");
}
else
{printf("\n\nEnter Correct Day!!!!!!");
goto back11;}
}
else
{printf("\n\nEnter Correct No.!!!!!!");
delay (99999999);
delay (99999999);
delay (99999999);
delay (99999999);
goto skip;}
getch();
}
![Page 15: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/15.jpg)
int menu() //Fuction//
{
if (year==1992||year==1980||year==2004)
printf("\nYou are born on the Year of the MONKEY.");
else if (year==1993||year==1981||year==2005)
printf("\nYou are born on the Year of the ROOSTER.");
else if (year==1994||year==2006||year==1982||year==1970)
printf("\nYou are born on the Year of the DOG.");
else if (year==1995||year==2007||year==1971||year==1983)
printf("\nYou are born on the Year of the BOAR.");
else if (year==1996||year==2008||year==1984||year==1972)
printf("\nYou are born on the Year of the RAT.");
else if (year==1997||year==2009||year==1985||year==1973)
printf("\nYou are born on the Year of the OX.");
else if (year==1998||year==2010||year==1986||year==1974)
printf("\nYou are born on the Year of the TIGER.");
else if (year==1975||year==1999||year==1987)
printf("\nYou are born on the Year of the RABBIT.");
else if (year==1976||year==2000||year==1988)
printf("\nYou are born on the Year of the DRAGON.");
else if (year==1977||year==2001||year==1989)
printf("\nYou are born on the Year of the SNAKE.");
else if (year==2002||year==1978||year==1990)
printf("\nYou are born on the Year of the HORSE.");
else if (year==2003||year==1979||year==1991)
printf("\nYou are born on the Year of the RAM.");
return;
}
![Page 16: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/16.jpg)
![Page 17: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/17.jpg)
![Page 18: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/18.jpg)
![Page 19: Mythological calender using C++](https://reader035.vdocuments.mx/reader035/viewer/2022073116/55581253d8b42ae31c8b5667/html5/thumbnails/19.jpg)