Mattbdb,
I, like everyone else assume that this is a student assignment. This site has a history of ensuring that students do their own work and not get the members here to do it for them. But I’m going to assume that you are not one of those and that you are looking for a place to start.
You must break these types of problems into smaller parts. The first key to your problem is counting the work.
1.Build a counter that resets itself every 10 parts.
2.Build another counter that counts bad parts. Use the reset of counter 1 to reset both counters.
3.Once you have the counters working the way you want try making just the light come on when the proper number of scrap parts is reached.
4.Now that all of that works, make the buzzer alternate with the light.
5.Finally add the interrupt for the press.
Once you have everything working go over your design and find ways to make it better. Once you get some experience with programming you will be able to look at a problem like this and know how you can do 95% of it before you ever start programming. But for now don’t be too worried about the whole operation. Just make one part work, then another, and another until you have a total job.
Good Luck