A tank is divided into two sections by a 1 1-m square gate that is hinged at A. A couple of magnitude 490 N m is required for the gate to rotate. If one side of the tank is filled with water at the rate of 0.1 m3/min and the other side is filled simultaneously with methyl alcohol (density ma = 789 kg/m3) at the rate of 0.2 m3/min, determine at what time and in which direction the gate will rotate.

Day 5 fprintfThis function is used to format output anything written in single parentheses that becomes a string of text is a string value, or a numerical value see picture below to see the syntax). Example: >> y=input('Enter a number') Enter a number Or >> z = input('Enter Text:','s') Enter Text: Syntax:fprintf(format_string, variables) if you want to use special characters in the string, put ‘/’ In class exercises: Number 3: >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number x = [] Y = [] >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number[0 pi/8 pi/6 pi/4 pi/2] x = 0