Do both of your parents have dementia? And they both get mad and yell for things? Honestly, there’s not much you can do to prevent an occasional outburst, but what are they looking for? I feel like I need a little more detail to give you the best advice.
I would say you need to figure out why they are getting so frustrated so quickly. What are they upset about and what meds are they on?