You'll have to create a Smart Hello World
.
Your app need to take a name (by default world
if none is provided) and write a greeting depending on the time of the day:
Good morning X
if current hour is < 12h00Good afternoon X
if current hour is > 12h00 and < 20h00Good night X
if current hour is after 20h00 and before 6h00 in the morning
You need to make it right:
- take care of the boundaries of the system (what are your functional code and your technical code, what are invariants,...)
- your business code should be testable