Write a program in C to perform the following:
- Generates an array of 10 double random values between 1.0 and100.0 – assume these are prices for 10 items that a storesells
- Generates an array of 10 integer random values between 0 and200 – assume that these are the number of items/units (first array)sold
- Generate another array called “itemSale†which would containthe total sale for each item.
- Calculate the total sale for this store and display it
- If the number of items sold is more than 100, notify the userthat this item (Item number from table below) needs to bereordered.
- Display the following table:
Item                Price/unit        unitssold        Total
1Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 33.45Â Â Â Â Â Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 66.9
2Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 435.22Â Â Â Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 2176.1
3Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 55.12Â Â Â Â Â Â Â Â Â Â Â Â Â Â 100Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 551.2
..                     …                   …                   …
____________________________________________
Total store sale: ??????
Requirement
- Must use arrays
- Must create a functions to generate random numbers for eacharray
- Must use function to calculate the sale of each item
- Must use appropriate loop to traverse the arrays