Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 C
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 documentStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started