<prompt> Kujenga programu ambayo kumbukumbu joto la kompyuta na kikomo matumizi yake kulingana na thamani iliyotolewa.  <response>: Here is a basic program, in Python, to log and monitor the temperature of a computer and limit its usage if the temperature exceeds a certain value:pythonimport osimport psutilimport timefrom datetime import datetimeset temperature limit value in CelsiustempLimit 70function to get current CPU temperaturedef getTemperature: temperature psutil.sensors_temperatures currentTemp temperaturecoretemp0.current return currentTempfunction to log temperature of CPU with timestampsdef logTemperaturetemp: logfile opentemperatureLog.txt, a timestamp datetime.now.strftimeY-m-d H:M:S log timestamp - CPU Temperature: strtemp n logfile.writelog logfile.closefunction to check if the temperature exceeds limit and take action accordinglydef checkTemperature: while True: currentTemp getTemperature logTemperaturecurrentTemp if currentTemp tempLimit: limit computer usage os.systemshutdown -s -t 60 shutdown computer in 60 seconds break time.sleep60 check temperature every 60 secondscheckTemperatureThe above program logs the temperature of the CPU every 60 seconds and writes it to a log file with timestamps. If the temperature of the CPU exceeds the specified tempLimit in this case, 70 degrees Celsius, the computer will shut down in 60 seconds to prevent further usage and overheating. The temperature limit value and the frequency of temperature checking can be adjusted as needed.Note: The method for obtaining the CPU temperature may differ depending on the operating system and hardware being used. The above method is specific to Linux and may not work on other operating systems. 