The input file threshold.txt holds a single integer salary threshold (e.g. 60000).
Write a program that reads this threshold and prints the number of instructors whose salary is greater than or equal to it.
Output: exactly one line containing a single integer — the count of qualifying instructors.
Note: Do not hard-code the database name — your program is run against a different database instance for evaluation. The input file is in the same folder as your program.
For the database connection, use these variables:
database = sys.argv[1] # database name, from the command line
user = os.environ.get('PGUSER')
password = os.environ.get('PGPASSWORD')
host = os.environ.get('PGHOST')
port = os.environ.get('PGPORT')
The input is a file named threshold.txt in the same folder — A single line containing an integer salary threshold..
primary keyforeign keyarrow points to the referenced columndrag to pan