How to add an add-on to every product

Is there a possibility of adding a feature where you can have an add-on available for every product? For example, I want to be able to add an option that would be "extended warranty." I would need to make it different pricing based on the price of the product being waranteed, and also optional since I wouldn't be able to add this to every product. I'm pretty sure the programming would be very similar to adding shipping options.