用Dev C++写一个程序 15

Writeanastrologyprogram.Theusertypesinabirthday,andtheprogramrespondswiththesignandho... Write an astrology program. The user types in a birthday, and the program responds with the sign and horoscope for that birthday. The month may be entered as a number from 1 to 12. Then enhance your program so that if the birthday is only one or two days away from an adjacent sign, the program announces that the birthday is on a “cusp” and also outputs the horoscope for that nearest adjacent sign. This program will have a long multiway branch. Make up a horoscope for each sign. Your program should include a loop that lets the user repeat this calculation until the users says she or he is done.

The horoscope signs and dates are:
Aries (!) March 21-April 19
Taurus (@) April 20-May 20
Gemini (#) May 21-June21
Cancer ($) June 22-July 22
Leo (%) July 23-August 22
Virgo (^) August 23-September 22
Libra (&) September 23- October 22
Scorpio (*) October 23-November 21
Sagittarius (~) November 22-December 21
Capricorn (*) December 22-January 19
Aquarius (\) January 20-February 18
Pisces (-) February 19-March 20

括号里的是每个星座代表的sign

能写成功的我再追加50分。。拜托各位了。。
展开
 我来答
wubenhua2008
2009-03-10 · TA获得超过934个赞
知道小有建树答主
回答量:455
采纳率:0%
帮助的人:464万
展开全部
能否翻译成中文?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式