Code Question

HI, I need to make a circuit where there are 3 push button inputs that all correspond to powering the same motor for different time periods.
Would anyone be able to shed some light, as I am struggling to put together a decent code,

What have you tried so far ?

Are you using the online Editor or the desktop IDE ?