Re: Birthday Problem
From: Sandra (s.cantrell_at_mindspring.com)
Date: 04/13/04
- Next message: Howard: "[OT] Re: Birthday Problem"
- Previous message: Alf P. Steinbach: "Re: Birthday Problem"
- Maybe in reply to: Sandra: "Birthday Problem"
- Next in thread: Christopher Benson-Manica: "Re: Birthday Problem"
- Reply: Christopher Benson-Manica: "Re: Birthday Problem"
- Reply: Gary Labowitz: "Re: Birthday Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Apr 2004 23:31:49 GMT
On Mon, 12 Apr 2004 23:21:26 GMT, alfps@start.no (Alf P. Steinbach)
wrote:
>
>Well, it seems your work is cut out for you, unless the context of the
>problem formulation is such that it really means something more than stated.
>
>All your program has to do is to ask you whether your birthday is February
>29th, and then apply the formula inconsiderately given you by Robert
>E. Tisdale and at least one more poster. The program could output one
>result based on the current year or on assuming a non leap-year, or it could
>output two result, one for non-leap and one for leap-year. In the latter case
>the formula should be suitably modified for leap year. Of course it could
>also output four results, one for each combination of February 29th or not and
>leap year or not. That way you could avoid the input part.
>
>Also, it might be possible to avoid the leap year thing by analyzing whether
>it can affect the result or not.
>
>--
>A: Because it messes up the order in which people normally read text.
>Q: Why is top-posting such a bad thing?
>A: Top-posting.
>Q: What is the most annoying thing on usenet and in e-mail?
Thanks Alf - I am working on an encyrption\decryption program right
now so I think I am going to let this one go. I really am stuck :)
He is going to give us the answer on Wed - Do you want to see what he
comes up with ?
Sandra
- Next message: Howard: "[OT] Re: Birthday Problem"
- Previous message: Alf P. Steinbach: "Re: Birthday Problem"
- Maybe in reply to: Sandra: "Birthday Problem"
- Next in thread: Christopher Benson-Manica: "Re: Birthday Problem"
- Reply: Christopher Benson-Manica: "Re: Birthday Problem"
- Reply: Gary Labowitz: "Re: Birthday Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|