so...its a question about energy transformation.
the rollarcoster is a example of energy transformation between kinetic energy and potential energy.while the battery is a transformation between chemical energy and electrical energy.that is some chemical reactions happen in the battery andtransform chemical energyv to electric energy:)