红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

编程问题。。。不会做...

发布时间:2010-03-14 16:20:42来源:红联作者:dragonballz52
You are required to develop an algorithm that will receive a date in the format dd/mm/yyyy (for example, 21/07/2006) and validate it as follows:
i the month must be in the range 1-12, and
ii the day must be in the range of 1-31 and acceptable for the corresponding month. (Don’t forget a leap year check for February.)

You can assume that the input as three integer numbers representing day, month and year.

(a) Design the above algorithm and complete the following defining diagram.
A Defining diagram
Input Processing Output




(b) Write your solution algorithm using pseudocode.
(c) Write at least three sets of test data for this algorithm.

偶不会做这道题啊。。。写了半天还是错的。。。哪个帮帮忙 啊,,,3Q了
文章评论

共有 3 条评论

  1. a_ban 于 2010-04-15 11:52:27发表:

    做C++的时候做过啊~~很简单的,你自己慢慢做吧!

  2. a_ban 于 2010-04-15 11:50:44发表:

    这是ACM的吧~~

  3. 不工作的男人 于 2010-03-15 14:03:14发表:

    我也不会啊,看都看不懂啊