subject
Computers and Technology, 14.09.2019 06:30 CM0

Write a program in java that consists of a "isprime" method that takes an integer as a parameter and returns a boolean value that indicates whether the parameter is a prime number(i. e. returns true if it is a prime number, false if it is not prime). the method signature should like this: public static boolean isprime(int num)
in your "main" method, prompt the user to input a list of numbers. assume that the input ends with number 0. the main method will make a call to "isprime" for each number to determine whether that number is a prime number. the "main" method will display the results to the user.
here's a sample run of the program:
sample 1:
enter numbers: 173 109 181 138 190 100 193 140 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Does the query hawaiian photographers fully meets results?
Answers: 1
You know the right answer?
Write a program in java that consists of a "isprime" method that takes an integer as a parameter and...
Questions
Questions on the website: 13722360