TITLE
Project to implement “HOROSCOPE”
BCA 1st semester
Submitted To Submitted By
Deepali Totre
ABOUT THE PROJECT
In astrology, a horoscope is a chart or diagram representing the positions of the sun, moon, planets, the astrological aspects, and sensitive angles at the time of an event, such as the moment of a person’s birth. The word horoscope is derived from greek words meaning “a look at the hours” (horoskopos, pl. horoskopoi, of “marker(s) of the hour.”)
Other commonly used names for the horoscope in English include astrological chart astro-chart, celestial map, sky-map, star-chart, cosmogram, vitasphere, radical chart, radix chart wheel, or simply chart. It is used as a method of divination regarding events relating to the point in time it represents and forms the basic of the horoscope traditions of astrology.
In common usage, horoscope often refer to an astrologer’s interpretation, usually through a system of sun sign astrology or based upon calendar significance of an event, as in Chinese astrology. In particular, many newspapers and magazines carry predictive columns based on celestial influences in relation to the zodiacal placement of the sun on the day of a person’s birth, identifying the individual’s sun sign of “star sign.g” this system is distict from horoscope as traditionally employed, as only the zodiacal placement of the sun is considered in interpretation while this modern usage is perhaps the most popular in the colloquial lexicon, this article will focus primarily on the traditional concept.
ADVANTAGES
Time saving
Accurate
Fast processing
Easy to manage
Automated
HARDWARE AND SOFTWARE PROFILE
HARDWARE SOFTWARE
1.3 ghz processor Windows XP
Monitor Turboc2
RAM 20 MB
Keyboard
80 MB Hard disk Space
Limitations
• We can’t use mouse
• We can run it on Local Area Network
• ‘C’ cannot provide event driven
• There is a problem of file handling
DECLARATION
Here by declared that Mr. Ankur Dixit, Ankit Tiwari, Anuruddha kumar, Badri Prashad, Complete this project “HOROSCOPE” under the guidance of Miss Deepali Totre.
Date: Submitted By
TESTING
Function testing-
divided our program modular and check individual module
Unit testing –
we check integrity accuracy of designed project
CERTIFICATE
This is to certify that Mr./Miss has been visited our office/institute for submit his/her project work.
During the project work his/her behavior was fine.
CODING
#include
#include
#include
#include
int menu();
int year, month, day;
void main()
{
start:
clrscr();
printf(" nEnter Year (1970-2005):n");
scanf("%d",&year);
if (year<1970||year>2005)
goto start;
skip:
printf(" nEnter Your Month No. (1-12):n");
scanf("%d",&month);
if (month==1)
{
back:
printf("n Enter Day (1-31): n");
scanf("%d",&day);
if (day<=19)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of JANUARY. n");
printf("n Your BirthStone is GARNET. n");
printf("n You are a CAPRICORN. n");
}
else if (day>19&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of JANUARY. n");
printf("n Your BirthStone is GARNET. n");
printf("n You are an AQUARIUS.n ");
}
else
{printf("n Enter Correct Day!!!!!! n");
goto back;}
}
else if (month==2)
{
back1:
printf("n Enter Day (1-29): n");
scanf("%d",&day);
if (day<=18)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of FEBRUARY. n");
printf("n Your BirthStone is AMETHYST. n");
printf("n You are an AQUARIUS. n");
}
else if (day>18&&day<=29)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of FEBRUARY. n");
printf("n Your BirthStone is AMETHYST. n");
printf("n You are a PISCES. n");
}
else
{printf("n Enter Correct Day!!!!!! n");
goto back1;}
}
else if (month==3)
{
back2:
printf("Enter Day (1-31):");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of MARCH. n");
printf("nYour BirthStone is AQUAMARINE or BLOODSTONE. n");
printf("nYou are a PISCES. n");
}
else if (day>20&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of MARCH. n");
printf("n Your BirthStone is AQUAMARINE or BLOODSTONE. n");
printf("n You are an ARIES. n");
}
else
{printf("n Enter Correct Day!!!!!! n");
goto back2;}
}
else if (month==4)
{
back3:
printf("n Enter Day (1-30): n");
scanf("%d",&day);
if (day<=19)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of APRIL. n");
printf("nYour BirthStone is DIAMOND. n");
printf("nYou are an ARIES. n");
}
else if (day>19&&day<=30)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of APRIL. n");
printf("nYour BirthStone is DIAMOND.");
printf("nYou are a TAURUS.");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back3;}
}
else if (month==5)
{
back4:
printf("nEnter Day (1-31): n");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of MAY. n");
printf("nYour BirthStone is EMERALD.");
printf("nYou are a TAURUS.");
}
else if (day>20&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of MAY. n");
printf("nYour BirthStone is EMERALD.");
printf("nYou are a GEMINI.");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back4;}
}
else if (month==6)
{
back5:
printf("nEnter Day (1-30): n");
scanf("%d",&day);
if (day<=20)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of JUNE. n");
printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE. n");
printf("nYou are a GEMINI.");
}
else if (day>20&&day<=30)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of JUNE. n");
printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE. n");
printf("nYou are a CANCER.");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back5;}
}
else if (month==7)
{
back6:
printf("nEnter Day (1-31): n");
scanf("%d",&day);
if (day<=22)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of JULY. n");
printf("n Your BirthStone is RUBY.");
printf("n You are a CANCER.");
}
else if (day>22&&day<=30)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of JULY. n");
printf("n Your BirthStone is RUBY. n");
printf("n You are a LEO. n");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back6;}
}
else if (month==8)
{
back7:
printf("n Enter Day (1-31): n");
scanf("%d",&day);
if (day<=22)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of AUGUST. n");
printf("n Your BirthStone is PERIDOT or SARDONYX. n");
printf("n You are a LEO. n");
}
else if (day>22&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of AUGUST. n");
printf("n Your BirthStone is PERIDOT or SARDONYX. n");
printf("n You are a VIRGO. n");
}
else
{printf("n Enter Correct Day!!!!!! n");
goto back7;}
}
else if (month==9)
{
back8:
printf("n Enter Day (1-30): n");
scanf("%d",&day);
if (day<=22)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of SEPTEMBER. n");
printf("n Your BirthStone is SAPPHIRE. n");
printf("n You are a VIRGO. n");
}
else if (day>22&&day<=30)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("n You are born on the month of SEPTEMBER. n");
printf("n Your BirthStone is SAPPHIRE. n");
printf("n You are a LIBRA.");
}
else
{printf("n Enter Correct Day!!!!!! n");
goto back8;}
}
else if (month==10)
{
back9:
printf("nEnter Day (1-31): n");
scanf("%d",&day);
if (day<=22)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of OCTOBER. n");
printf("nYour BirthStone is OPAL or TOURMALINE. n");
printf("nYou are a LIBRA. n");
}
else if (day>22&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of OCTOBER. n");
printf("nYour BirthStone is OPAL or TOURMALINE. n");
printf("nYou are a SCORPIO. n");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back9;}
}
else if (month==11)
{
back10:
printf("nEnter Day (1-30): n");
scanf("%d",&day);
if (day<=21)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of NOVEMBER. n");
printf("nYour BirthStone is TOPAZ. n");
printf("nYou are a SCORPIO. n");
}
else if (day>21&&day<=30)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of NOVEMBER. n");
printf("nYour BirthStone is TOPAZ. n");
printf("nYou are a SAGITARIUS. n");
}
else
{printf("nEnter Correct Day!!!!!! n");
goto back10;}
}
else if (month==12)
{
back11:
printf("nEnter Day (1-31): n");
scanf("%d",&day);
if (day<=21)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of DECEMBER. n");
printf("nYour BirthStone is TURQUOISE OR ZIRCON. n");
printf("nYou are a SAGITARIUS. n");
}
else if (day>21&&day<=31)
{
clrscr();
printf("%d-%d-%d",month,day,year);
menu();
printf("nYou are born on the month of DECEMBER. n");
printf("nYour BirthStone is TURQUOISE OR ZIRCON. n");
printf("nYou are a CAPRICORN. n");
}
else
{printf(" nEnter Correct Day!!!!!! n");
goto back11;}
}
else
{printf(" nEnter Correct No.!!!!!! n");
delay (99999999);
delay (99999999);
delay (99999999);
delay (99999999);
goto skip;}
getch();
}
int menu()
{
if (year==1992||year==1980||year==2004)
printf("nYou are born on the Year of the MONKEY. n");
else if (year==1993||year==1981||year==2005)
printf("nYou are born on the Year of the ROOSTER. n");
else if (year==1994||year==1982||year==1970)
printf("nYou are born on the Year of the DOG. n");
else if (year==1995||year==1971||year==1983)
printf("nYou are born on the Year of the BOAR. n");
else if (year==1996||year==1984||year==1972)
printf("nYou are born on the Year of the RAT. n");
else if (year==1997||year==1985||year==1973)
printf("nYou are born on the Year of the OX. n");
else if (year==1998||year==1986||year==1974)
printf("nYou are born on the Year of the TIGER. n");
else if (year==1975||year==1999||year==1987)
printf("nYou are born on the Year of the RABBIT. n");
else if (year==1976||year==2000||year==1988)
printf("nYou are born on the Year of the DRAGON. n");
else if (year==1977||year==2001||year==1989)
printf("nYou are born on the Year of the SNAKE. n");
else if (year==2002||year==1978||year==1990)
printf("You are born on the Year of the HORSE. n");
else if (year==2003||year==1979||year==1991)
printf("nYou are born on the Year of the RAM. n");
return;
}
INPUT SCREEN
OUTPUT SCREEN