C program for the Fractional Knapsack Algorithm for the flood relief scenario, where: