IMO the most important thing is to start and stay hydrated.
3 bars and 1-2 gels should be plenty for 100 miles. I usually eat the bars and leave the gels for emergencies.
On supported rides, there should be plenty of food every 20-25 miles. On unsupported rides I'll stop at convenience stores.
A coke at mile 90 is wonderful.