Question: Description: Design and write a program that processes 25 integer values (integers) as follows. --> count all input values (ALL) --> count values, excluding immediate

Description: Design and write a program that processes 25 integer values (integers) as follows. --> count all input values (ALL) --> count values, excluding immediate duplicates (NODUP) Note: 1 2 2 3 4 2; excluding duplcates: 1 2 3 4 2 --> Compute statistics on ALL and NODUP: ALL: sum, average (2 decimal places), min, max NODUP: sum, average (3 decimal places), max, min Required Input/Output Formats: Input Prompt: Enter 25 integer values: Output labels/format: ALL COUNT = xxx NODUP COUNT = xxx ALL STATS: SUM = x AVG = x.xx MIN = x MAX = x NODUP STATS: x:SUM x.xxx:AVG x:MAX x:MIN Example: 1 2 3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 all count = 25 / nodup count = 5 ... NOTE: In the formatting a single 'x' means "no field width required', but '.xx' means 2 decimal places, '.xxx' means 3. 

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!