C programing—Write the functions that are called in the main()function to produce these outputs.
Requirements for the function – determine_comm_rate()
Sales less than 10000.00 rate: .10
Sales from 10000.00 to 14999.99 rate: .12
Sales from 15000.00 to 17999.99 rate: .14
Sales from 18000.00 to 21999.99 rate: .16
Sales greater than 21999.99 rate: .18
Enter the monthly sales: 14550.00 Enter the amount of advanced pay, or enter 0 if no advanced pay was given Advanced pay: 1000.00 The pay is $746.00 Enter the
OR
OR