(a) Plants prepare their own food in the presence of sunlight and chlorophyll. This is done by converting simple inorganic materials like carbon dioxide and water present in the surroundings.
(b) Plants need nitrogen for making proteins and other compounds. Plants obtain nitrogen from the soil.