Question: Having trouble doing this!! Do anyone know how to create a java program that calculates the average of a prime value from the given numbers
Having trouble doing this!! Do anyone know how to create a java program that calculates the average of a prime value from the given numbers below and in this process below? Process: Read Lines from "Values.txt" Determine if the line is an integer Determine if the integer is prime Keep running average of primes Print running average of primes (no formatting necessary) 751 1090 971 1054 7 300 19 834 100 751 549 288 641 989 479 1388 1319 584
Step by Step Solution
There are 3 Steps involved in it
Java Program to Calculate Running Average of Prime Numbers from a File Problem Overview Input A file ... View full answer
Get step-by-step solutions from verified subject matter experts
