In a Bash case statement, each pattern list is ended with a single semicolon, and the entire case block is closed with…