Photometric Variations In The Sun And Solar-Type Stars