Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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