#C5653. Calculate Delivery Rates
Calculate Delivery Rates
Calculate Delivery Rates
You are given data for several drivers. For each driver, you are provided with the number of deliveries made and the number of hours worked. Your task is to compute the delivery rate for each driver. The delivery rate is defined as:
\( \text{Rate} = \frac{D}{H} \)
where \(D\) is the number of deliveries and \(H\) is the number of hours worked. The computed rate should be rounded to two decimal places. The result for each driver should be output in the same order as the input.
inputFormat
The first line contains a single integer \(T\) representing the number of drivers. Each of the next \(T\) lines contains two space-separated integers \(D\) and \(H\) where:
- \(D\) is the number of deliveries made by a driver, and
- \(H\) is the number of hours worked by that driver.
You may assume that \(H > 0\) for all drivers.
outputFormat
Output a single line containing \(T\) floating point numbers representing the delivery rates for each driver, in the same order as given in the input. Each rate should be rounded to two decimal places and separated by a space.
## sample1
240 30
8.00
</p>