Two switches one time output

Hi im new to arduino and have basic/hardly any knowledge of arduino prog. Can someone kind enough to write me a programm that does this fairly basic function.

Basically what i need is two switches and one timed output .the output being a solenoid.
Switch 1 =momentary switch : when pressed delay 3.5seconds to switch on output(output stays on for 1sec.) then off again.
Switch 2 Vibration switch: when triggered, output will switch on straight away (stay on for 1sec) then off.
So thats the basic idea. I need both switches to work whenever i need it to. I will using the the program on a digispark

If you want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.

If you want to learn to program yourself the examples that come with the Arduino IDE are a good place to start. There are also many online tutorials. Also see the Useful Links Thread.

...R

Also an incomplete specification.

What happens if button 2 is pressed during button 1's 3.5 second delay? What happens if one of the buttons is pressed when the solenoid is on?