First, I suggest that your friend consult with a criminal defense attorney to assist in the felony charge for armed robbery. Possibly a plea agreement may result in a reduced charge. However, from what you have written about, I see jail time for your friend if convicted.