Scotch Tape (or equivalent)
Pierce hole through middle bottom of the cup.
Thread string through leaving a little excess string at the bottom of cup. Tape the string to the bottom.
Tape other emd of string to ball and let you or your child have fun trying to flick the ball up and catch it with the cup.