Question: C language: I need the correct answer for the program. Please don't forget to add the comment on each line, please. This is a screenshot
C language: I need the correct answer for the program. Please don't forget to add the comment on each line, please.

This is a screenshot of page 449

Program 2: Write a function named retailSales0 that will allow the user to enter in the total retail sales for each month of the year. Use an array of pointers for the months (see page 449). Add the function to your driver program. Use a declared, but uninitialized array of floats for the sales. You are creating a parallel array. Each element in the month array will be matched with a corresponding element in the sales array. When stepping through the arrays, please use subscripts for the sales array and pointers for the months array. Here is what the prompts and input should look like: Please enter sales for January: 56987.45 Please enter sales for February: 78986.98 Please enter sales for March: 98975.33 etc.... Here is what the output should look like: Month: Sales: January $56987.45 February $78986.98 March $98975.33 etc.... Put a comment to the side of each line explaining what that line of code accomplishes. Do not forget to do this since it is half of the part of the assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
