Wiring a ceiling light to a switched receptacle
First, stop using backstabs.  See how the wires go into that receptacle, jabbed into holes where magic fingers grab the wire?  Those are super unreliable and will give you nothing but trouble on down the road.  Switch to the side screws.  In some cases you will have more wires than the side screws can accommodate.  In that case use pigtails and wire nuts.  Or use Leviton's commercial tier receptacles that use "screw-to-clamp" back connections, they cost (are you sitting down?) $3.  

Now, get some colored electrical tape.   On the /2 cable coming down from the light, I want you to wrap the black wire with red tape, making it a red wire.  Do it on both ends if able.  This is now a red wire.  At this point, lucky us, all the wires work out to be color coded: red is switched-hot for the lamp.  

Once you've done what I just said with tape marking, take the receptacle and break the "tab" off between the two brass screws.  


all the black wires go together and to the upper brass screw. 
all the red wires go together and to the lower brass screw. 
all white wires go together and to the silver screw(s) which are still joined to each other. 


Looks like the switch is fine the way it is.  Switches have 2 screws that want the red and black wire.  

Oh, you want the switched receptacle on the lower, because it will rarely ever be unplugged - if it's on top, it's in the way evertime you try to use the other plug.