Computer won't stay on

I found out it was bad capacitors you can buy them at radio shack from 20-60 cents per capacitor so if you have the same prob them look at your capacitor if it look bubbled then you need a new capacitor.
 
Can you give us some more details?
What hardware do you have in your computer?
Did you build it or was it purchased?
How old is this computer?
Was it a short beep or a long beep or several beeps?
 
I purchased the computer at BestBuy
HP Pavilion a6720y PC
AMD Phenom X4 9550 Quad-Core Processor
NVIDIA GeForce 9100 Graphics
Windows Vista Home Premium
I upgraded Vista to Windows 7 Ultimate 64 Bit
 
Back