Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions