Question: IFT 2 1 0 : Introduction to Java Technologies home > 2 . 2 9 : LAB: Simple statistics zyBooks cat Submit the above for

IFT 210: Introduction to Java Technologies home >2.29: 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 2 below.
Part 2
Also output the product and average using floating-point arithmetic.
Output each floating-point value with three digits after the decimal point, which can be achieved as follows:
system.out.printf("%.3f", yourValue);
Hint: Convert the input values from int to double.
Ex: If the input is 81054, the output is:
16006
1600.000,6.750
Note that fractions aren't discarded, and that overflow does not occur for the test case with lrge values.
5280403489528 qx3zay?
LAB
ACTIVITY
2.29.1: LAB: Simple statistics
010
LabProgram.java
Load default template...
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int num1;
int num2;
int num 3 ;
int num4;
/* Type your code here. */
}
}
 IFT 210: Introduction to Java Technologies home >2.29: LAB: Simple statistics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!