Programming in C: A Les Mills BODYPUMP instructor has a list ofthe weight plates for her classes and saved in a file. Each weightplate was stored with the weight (kg), color, and quantity. Write aprogram that reads in the data (a list of weight plates) from afile, and sort the plates by weight, and write the ordered list tothe output file.
Assume the input file plates.txt has the format of weight(double), color (one word string), followed by quantity (int)within the following format:
10 blue 16
1.25 purple 20
…
1. Name your program weight_plates.c.
2. Declare a plate structure containing information of aweight plate’s weight, color,
OR
OR