organism that can capture energy from sunlight or chemicals and use it to produce its own food from inorganic compounds; also called a producer