Can you type your answer and not hand write please?

3. Write pseudo-code that manages a railroad crossing with a one-way street with car traffic. Your solution should use semaphores and the following rules should be satisfied: a) A car ada train can’t cross the intersection at the same time b) A vehicle arriving at the intersection should be allowed to cross if there is no vehicle approaching from the other direction. ceive priority Show transcribed image text
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured