Question: TO DO THIS USING C Functions Write a program that uses three functions: Displayinstructions() is a function that takes no arguments and returns no value

TO DO THIS USING CTO DO THIS USING C Functions Write a program that uses three

Functions Write a program that uses three functions: Displayinstructions() is a function that takes no arguments and returns no value but simply displays the instructions on what the program does using printf statements. HigherSales() is a function that takes 2 array arguments. The arguments should contain both contain 12 floats representing the monthly sales in 2 consecutive years. The function should return the number of months where the sales have increased from the previous year. DisplayAnswer() is a function that takes the number of months where the sales have increased as an argument and displays the value of it with an appropriate message. Your program should start by calling Displaylnstructions(), then it should read the floats after asking the user for them. It should then call the function HigherSales() to find the number of months where sales have increased. Finally, it should display the result by calling the function DisplayAnswer(). Make sure you use meaningful variable names and that you add comments to your code. You should submit your code and a sample of the input and output in a single pdf document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!