Question: IFT 2 1 0 : Introduction to Java Technologies home > 2 . 2 9 : LAB: Simple statistics zyBooks cat Submit the above for
IFT : Introduction to Java Technologies home : LAB: Simple statistics
zyBooks cat
Submit the above for grading. Your program will fail the last test cases which is expected until you complete part below.
Part
Also output the product and average using floatingpoint arithmetic.
Output each floatingpoint value with three digits after the decimal point, which can be achieved as follows:
system.out.printff yourValue;
Hint: Convert the input values from int to double.
Ex: If the input is the output is:
Note that fractions aren't discarded, and that overflow does not occur for the test case with lrge values.
qxzay?
LAB
ACTIVITY
: LAB: Simple statistics
LabProgram.java
Load default template...
import java.util.Scanner;
public class LabProgram
public static void mainString args
Scanner scnr new Scanner
System.in;
int num;
int num;
int num ;
int num;
Type your code here.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
