Answered step by step
Verified Expert Solution
Question
1 Approved Answer
X Finax Finh x IX W PUR X Epol x Goox 72 Elec: x 4 GDB X 0 FAIpQLS CAVI-6y3QE1A1eZLMENFuXp7wWORu4FBnWf1prJwp548fbQ/formResponse Question 5 At the end
X Finax Finh x IX W PUR X Epol x Goox 72 Elec: x 4 GDB X 0 FAIpQLS CAVI-6y3QE1A1eZLMENFuXp7wWORu4FBnWf1prJwp548fbQ/formResponse Question 5 At the end of the year a company wants to print a brief report about the total revenue, average revenue and a list of most recent 4 successful months (where a month is considered successful if the revenue has been more than 200000) Write a program in C which reads as input 12 decimal numbers representing the revenues of a company during the 12 months and prints as result the total revenue, the average revenue and a list of (up to four most recent successful months (the list may contain even less than 4 months if the number of successful months is less than 4). For example if the input is: 325000 135000 189000 205000 304000 102000 198000 255000 342000 116000 287000 175000 Then the output will be The total revenue is: 2633000 The average revenue is: 219416.7 A list of (up to 4) most recent successful months: Month 11 with 287000 Month 9 with 342000 Month 8 with 255000 Month 5 with 304000 YOU ARE ADVISED TO WORK OUT THE SOURCE CODE OF THE SOLUTION 12 points FC Pre e
Step 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