I had been getting a lot of pop-ups and browser ads on my Mac and I suspected it might be due to a virus so I installed Avast. After running a virus scan, Avast found 10 viruses and 18 warnings, which I told it to delete.
It might have deleted some system files because now my mac will not start. If shows the Apple logo on boot and then it shows an error logo with the processing bar and that's as far as it ever gets.
Please tell me how I can get my Mac back in to a working state?