For shipyards, each yard type can build a ship up to the length of the yard (with the exception of S4's, which can build any ship regardless of length).
For factories and factory stations, they can create any non-medical items, droids, vehicles, and ships up to 80 meters long.
EDIT: Sorry, didn't see the cost. Cost seems to be about 2 times the Raw Material Cost as shown on the item.
I suppose you should also factor in Datacard rental costs, plus the amount of credits required to purchase the materials. However, these prices vary with the datacard you want and which materials you want to buy.
Edited By: Shaa Cideg on Year 13 Day 327 20:33 ____________
Also, you can get a copy of "the production book" from Ellias Aubec. A very handy spreadsheet document that provides all the info you are asking for as well as the total RM's needed.