A mechanic will test the viability of your current battery. There’s a possibility your lack of power has nothing to do with a dead battery. Other malfunctions can cause the same problems. The mechanic will run a diagnostic to figure out the root cause. If a replacement battery is necessary, the mechanic will replace it with a new, warrantied battery.