Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

Students also viewed these Databases questions