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

Availability: In stock

Regular Price: $7.00

Special Price: $5.00

OR

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

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. */
    }
}

Regular Price: $7.00

Special Price: $5.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. */
    }
}

Product Tags

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