How can I put an object in the center of the viewport and on top of the floor?
If I'm understanding correctly, this should help. Try this:


In Edit Mode select the bottom Face
Shift+S > cursor to Selected
switch with Tab in Object Mode
In the Tools panel Set Origin to 3D cursor
Shift+S > cursor to center
Press Shift+S again, but choose selection to cursor 




Also see this post