


def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 9 / 5) + 32  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(float(__lowerCamelCase  ) + 273.15  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 9 / 5) + 491.67  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) - 32) * 5 / 9  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(((float(__lowerCamelCase  ) - 32) * 5 / 9) + 273.15  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(float(__lowerCamelCase  ) + 459.67  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(float(__lowerCamelCase  ) - 273.15  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(((float(__lowerCamelCase  ) - 273.15) * 9 / 5) + 32  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 9 / 5)  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) - 491.67) * 5 / 9  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round(float(__lowerCamelCase  ) - 459.67  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 5 / 9)  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 1.25 + 273.15)  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 2.25 + 32)  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 1.25)  ,			__lowerCamelCase  )




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		float  ,			__lowerCamelCase:		int = 2  ):







	'''simple docstring'''



	return round((float(__lowerCamelCase  ) * 2.25 + 32 + 459.67)  ,			__lowerCamelCase  )


if __name__ == "__main__":
							import doctest

							doctest.testmod()





from __future__ import annotations

from statistics import mean




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		list[int]  ):







	'''simple docstring'''



	lowercase_			 = 2
	lowercase_			 = list(__lowerCamelCase  )
	lowercase_			 = [0] * len(__lowerCamelCase  )
	lowercase_			 = 0
	while True:
		lowercase_			 = True
		for i, burst_time in enumerate(__lowerCamelCase  ):
			if rem_burst_times[i] > 0:
				lowercase_			 = False
				if rem_burst_times[i] > quantum:
					t += quantum
					rem_burst_times[i] -= quantum
				else:
					t += rem_burst_times[i]
					lowercase_			 = t - burst_time
					lowercase_			 = 0
		if done is True:
			return waiting_times




def SCREAMING_SNAKE_CASE_  (				__lowerCamelCase:		list[int]  ,			__lowerCamelCase:		list[int]  ):







	'''simple docstring'''



	return [burst + waiting for burst, waiting in zip(__lowerCamelCase  ,			__lowerCamelCase  )]


if __name__ == "__main__":
							SCREAMING_SNAKE_CASE__       			=				[3, 5, 7]
							SCREAMING_SNAKE_CASE__       			=				calculate_waiting_times(burst_times)
							SCREAMING_SNAKE_CASE__       			=				calculate_turn_around_times(burst_times, waiting_times)
							print("""Process ID \tBurst Time \tWaiting Time \tTurnaround Time""")
							for i, burst_time in enumerate(burst_times):
														print(
														    f"""  {i + 1}\t\t  {burst_time}\t\t  {waiting_times[i]}\t\t  """
														    f"""{turn_around_times[i]}"""
														)
							print(f"""\nAverage waiting time = {mean(waiting_times):.5f}""")
							print(f"""Average turn around time = {mean(turn_around_times):.5f}""")

