HI, Welcome to Just Answer!
Buy a new battery. Remove old battery. Turn ignition key to the "on" position and leave it there while you connect the new battery. Start car.
With the key being on when you connect the battery the computer knows its OK to start.