Easiest way to write this program,please help !

Printable View