Delete_Theatre() to input the value of Th_ID from the user and permanently delete the corresponding record from the THEATRE table in the CINEMA database.commit() after INSERT, UPDATE, or DELETE to save changes.cursor.rowcount to check if a record was modified or deleted.%s to avoid SQL injection.
import mysql.connector
def Delete_Theatre():
try:
mydb = mysql.connector.connect(
host="localhost",
user="root",
passwd="Ex2025",
database="CINEMA"
)
mycursor = mydb.cursor()
thid = input("Enter Theatre ID to delete: ")
query = "DELETE FROM THEATRE WHERE Th_ID = %s"
mycursor.execute(query, (thid,))
mydb.commit()
if mycursor.rowcount > 0:
print("Record deleted successfully.")
else:
print("No record found with the given Theatre ID.")
mycursor.close()
mydb.close()
except mysql.connector.Error as err:
print("Error:", err)
Given the following table:
| ENO | SALARY |
|---|---|
| A101 | 4000 |
| B109 | NULL |
| C508 | 6000 |
| A305 | 2000 |
State the output of the following query:
SELECT COUNT(SALARY) FROM EMPLOYEE;
A racing track is built around an elliptical ground whose equation is given by \[ 9x^2 + 16y^2 = 144 \] The width of the track is \(3\) m as shown. Based on the given information answer the following: 
(i) Express \(y\) as a function of \(x\) from the given equation of ellipse.
(ii) Integrate the function obtained in (i) with respect to \(x\).
(iii)(a) Find the area of the region enclosed within the elliptical ground excluding the track using integration.
OR
(iii)(b) Write the coordinates of the points \(P\) and \(Q\) where the outer edge of the track cuts \(x\)-axis and \(y\)-axis in first quadrant and find the area of triangle formed by points \(P,O,Q\).