Question
The area of an equilateral triangle is given as 432
β3βcm2 . A square is constructed such that one of its sides is equal to the height of the triangle. Calculate the difference between the perimeters of the square and the triangle.Solution
Area of equilateral triangle = (β3/4) X side2 Let the side of the given triangle be 'a' cm. ATQ; 432β3 = (β3/4) X a2 Or, 432 X 4 = a2 So, 'a' = Β± 24β3 Since, side cannot be negative, a = +24β3 Height of equilateral triangle = (β3/2) X side So, height of the given triangle = (β3/2) X 24β3 = 36 cm So, length of each side of the square = 36 cm So, perimeter of the square = 36 X 4 = 144 cm And perimeter of the triangle = 24β3 X 3 = 72β3 cm So, required difference = 144 - 72β3 = 72(2 - β3) cm
Which construct replaces a command with its output in a POSIX shell?
Star schema consists of:
In Bash, which syntax is used for arithmetic expansion?
How do you access the value of a variable named `USERNAME` in a shell script?
Which command is used to search text patterns in files?
Which command is used to display the number of lines in a file?
How do you check the exit status of the last executed command in a shell?
Which command is used to display the first few lines of a file?
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
Which command is used to display the last 10 lines of a file in Linux?