Question: Lab Description Create a prime class that will determine if any provided number is prime. Use this class to tell all numbers in the data

 Lab Description Create a prime class that will determine if anyprovided number is prime. Use this class to tell all numbers inthe data file for primeness. A prime number is any number thatis only divisible by 1 and itself Sample Data 1201 1213 1217

Lab Description Create a prime class that will determine if any provided number is prime. Use this class to tell all numbers in the data file for primeness. A prime number is any number that is only divisible by 1 and itself Sample Data 1201 1213 1217 Files Needed: Prime.ava Primc Run nor . java 121 1431 1223 141 234 97 436 47 547 2456 34 Sample Output: 1201 IS PRIME 77 IS NOT PRIME 1213 IS PRIME IS NOT PRIME 1217 IS PRIME 99 IS NOT PRIME 121 IS NOT PRIME 1431 IS NOT PRIME 1223 IS PRIME 141 IS NOT PRIME 234 IS NOT PRIME 97 IS PRIME 436 IS NOT PRIME 47 IS PRIME 7 IS PRIME 547 IS PRIME 2456 IS NOT PRIME 34 IS NOT PRIME import static java.lang.System.* import java.lang.Math; public class Prime private int number; //constructor methods go here public void setPrime(int num) //boolean isPrime goes here public String toString() return ""; import java.io.IOException; import java.io.File; import java.util.Scanner; import static java.lang.System.* import java.lang.Math; public class PrimesRunner public static void main( String args throws IOException 137 01113214 3 6 5 1171819111129447523

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!