Hi Sanjay, I am getting an error message when I run your code. I am using 9.4. 1110 /*--Draw the…