Why did the Union Pacific and Central Pacific turn to immigrant labor to get the railroads built?

a) There was a shortage of available American workers willing to take on the difficult and dangerous railroad construction jobs.
b) Immigrant labor was cheaper and more readily available than American labor.
c) Many immigrants had experience working on railroads in their home countries.
d) All of the above.