How to create this programe?

How to create this programe?

What steps should I take to perform this program in the attached pic?