How is this attempted armed robbery if the guy never went in the store?
One need not succeed in a crime to be punished for the crime. Take enough sufficient steps towards the commission of it, and you're in deep enough. Otherwise, thwarted efforts would go unpunished.
well---the cap gun was loaded, the note was really well done, and he was facing the store?