Kira ha bisogno del tuo aiuto!
Formato di input:
Date [and/or Time]
Name
Gender
Reason
Formato di output:
<Last Name, First Name> <will die/died> on the <DD><st/nd/rd/th> of <MMM, YYYY> [at <hh:mm:ss TT>].
<He/She> <will die/died> of <Reason>.
Dettagli, Dettagli:
Il programma dovrebbe tenere conto almeno dei seguenti formati di input della data:
9 November 2003
9/11/2003
November 9, 2003
Formati orari:
hh tt
hh TT
hh:mm tt
hh:mm TT
hh:mm:ss tt
hh:mm:ss TT
HH
HH:mm
HH:mm:ss
I seguenti formati di input del nome:
first // Stephen
last // Harper
first last // Stephen Harper
last, first // Harper, Stephen
Casi test:
Ingresso:
2 September 1973
J.R.R. Tolkien
Male
pneumonia
Produzione:
Tolkien, JRR è morto il 2 settembre 1973.
È morto di polmonite.
DISCLAIMER: Se muore davvero in questa data, è colpa di Kira , non mia.
AGGIORNAMENTO: Stephen Harper non è morto nella data indicata
Ingresso:
21/12/12 23:59:59 // DD/MM/YY HH:mm:ss
Harper, Stephen // Last, First
Unknown // Gender
a heart attack for no reason // Reason
Produzione:
Harper, Stephen morirà il 21 dicembre 2012 alle 23:59:59.
Harper, Stephen morirà di infarto senza motivo.
Bonus:
July 21, 1969 02:56:15 GMT
Armstrong, Neil
Male
poisoned moon cheese
--
January 19, 2038 03:14:08 GMT
Everyone
Unknown
Y2K38
Aggiungi <st/nd/rd/th>alla fine di DDper input.