How can I deal with a tough professor?

You’re an adult now. You have to act like one. Part of that responsibility is following the professor’s rules, which sound reasonable ot me.