Welcome to AssignmentCache!

DAT/210 Week 3 Java LAB 4.13: Varied amount of input data

Availability: In stock

$7.00

Quick Overview

DAT/210 Week 3 Java LAB 4.13: 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.


import java.util.Scanner;


public class LabProgram {
    public static void main(String[] args) {
        /* Type your code here. */
    }
}

DAT210 Week 3 Java LAB 4.13 Varied amount of input data

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

  • DAT210 Week 3 Java LAB 4.13 Varied amount of input data
  • DAT210 Week 3 Java LAB 4.13 Varied amount of input data Result
$7.00

Details

DAT/210 Week 3 Java LAB 4.13: 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.

import java.util.Scanner;

public class LabProgram {
    public static void main(String[] args) {
        /* Type your code here. */
    }
}

Additional Information

Special Price $3.00

Product Tags

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

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