A car travel along a straight line for first half time with speed 40km/hrs & second half time with speed 60km/hrs. Find average speed.

avg speed = total_distance/total_time

so, just plug in your numbers

To find the average speed, you'll need to calculate the total distance traveled and divide it by the total time taken.

Let's first calculate the total distance traveled. Since the car travels at 40 km/hr for the first half of the time and at 60 km/hr for the second half, we can assume that the total time taken is the same for both halves.

Let's denote the total time taken as 't'. Since the car spends half the time at each speed, the time spent at 40 km/hr is t/2 and the time spent at 60 km/hr is also t/2.

Now, let's calculate the distance traveled in each half of the time:

Distance in the first half = Speed × Time = 40 km/hr × (t/2) = 20t km
Distance in the second half = Speed × Time = 60 km/hr × (t/2) = 30t km

To find the total distance, we add the distances in each half:

Total distance = Distance in the first half + Distance in the second half
= 20t km + 30t km
= 50t km

Now that we have the total distance, we can calculate the average speed:

Average speed = Total distance / Total time
= (50t km) / t hrs
= 50 km/hr

Therefore, the average speed of the car is 50 km/hr.