Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,647 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,130 people online right now. Registration is fast and FREE... Join Now!




horoscope system psl help

 
Reply to this topicStart new topic

horoscope system psl help

glen16
post 5 Aug, 2008 - 08:18 PM
Post #1


New D.I.C Head

*
Joined: 4 Aug, 2008
Posts: 1

[font=Comic Sans Ms]my problem is that i should output the Chinese zodiac sign of the person who will input their birthday.. for example may birthday is july 26,1990 it should output that i belong to the year of the horse.. what should i do with it? here are the years and corresponding zodiac sign

DOG – (1958, 1970, 1982, 1994, 2006, 2018)
PIG – (1959, 1971, 1983, 1995, 2007, 2019)
RAT – (1960, 1972, 1984, 1996, 2008, 2020)
OX - (1961, 1973, 1985, 1997, 2009, 2021)
TIGER - (1962, 1974, 1986, 1998, 2010, 2022)
RABBIT – (1963, 1975, 1987, 1999, 2011, 2023)
DRAGON – (1964, 1976, 1988, 2000, 2012, 2024)
SNAKE – (1965, 1977, 1989, 2001, 2013, 2025)
HORSE – (1966, 1978, 1990, 2002, 2014, 2026)
GOAT – (1967, 1979, 1991, 2003, 2015, 2027)
MONKEY – (1968, 1980, 1992, 2004, 2016, 2028)
ROOSTER – (1969, 1981, 1993, 2005, 2017, 2029)


QUOTE(glen16 @ 5 Aug, 2008 - 09:17 PM) *

[font=Comic Sans Ms]my problem is that i should output the Chinese zodiac sign of the person who will input their birthday.. for example may birthday is july 26,1990 it should output that i belong to the year of the horse.. what should i do with it? here are the years and corresponding zodiac sign

DOG – (1958, 1970, 1982, 1994, 2006, 2018)
PIG – (1959, 1971, 1983, 1995, 2007, 2019)
RAT – (1960, 1972, 1984, 1996, 2008, 2020)
OX - (1961, 1973, 1985, 1997, 2009, 2021)
TIGER - (1962, 1974, 1986, 1998, 2010, 2022)
RABBIT – (1963, 1975, 1987, 1999, 2011, 2023)
DRAGON – (1964, 1976, 1988, 2000, 2012, 2024)
SNAKE – (1965, 1977, 1989, 2001, 2013, 2025)
HORSE – (1966, 1978, 1990, 2002, 2014, 2026)
GOAT – (1967, 1979, 1991, 2003, 2015, 2027)
MONKEY – (1968, 1980, 1992, 2004, 2016, 2028)
ROOSTER – (1969, 1981, 1993, 2005, 2017, 2029)

p.s. i'm using c language not c++
User is offlineProfile CardPM

Go to the top of the page

bodom658
post 5 Aug, 2008 - 09:58 PM
Post #2


D.I.C Head

**
Joined: 22 Feb, 2008
Posts: 115



Thanked 4 times
My Contributions


do you have any code to start out with? I have my approach, but I want to see what you have tried.

Please, submit any code you have between the [*code] and [*/code] (without the *s) tags so we can help you, not do it for you

This post has been edited by bodom658: 5 Aug, 2008 - 10:00 PM
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 6 Aug, 2008 - 02:38 AM
Post #3


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,440



Thanked 94 times

Dream Kudos: 2625

Expert In: ruling the world.

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 04:55AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month