Welcome to AssignmentCache!

PRG/420 Week 3 Java 3.12 LAB: Varied amount of input data

Availability: In stock

$7.00

Quick Overview

PRG/420 Week 3 Java 3.12 LAB: Varied amount of input data


Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the average and max. A negative integer ends the input and is not included in the statistics.


Ex: When the input is:
15 20 0 5 -1


the output is:
10 20
You can assume that at least one non-negative integer is input.

PRG420 Week 3 Java 3.12 LAB Varied amount of input data

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

  • PRG420 Week 3 Java 3.12 LAB Varied amount of input data
  • PRG420 Week 3 Java 3.12 LAB Varied amount of input data Result
$7.00

Details

PRG/420 Week 3 Java 3.12 LAB: Varied amount of input data

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the average and max. A negative integer ends the input and is not included in the statistics.

Ex: When the input is:
15 20 0 5 -1

the output is:
10 20
You can assume that at least one non-negative integer is input.

Additional Information

Special Price $3.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.

[profiler]
Memory usage: real: 18350080, emalloc: 17941064
Code ProfilerTimeCntEmallocRealMem