Question: DO THIS ON JAVA PLEASE PROVIDE CODE SCREENSHOT AND OUTPUT SCREENSHOT FOR EVERY TASK INDIVIDUALLY :) Task 7 Write the function isPrime(int) which returns true
Task 7 Write the function isPrime(int) which returns true if the positive integer is Prime. A prime number is only divisible byl or by itself. (provide test cases) 2,3,5,7,11,13,17,19,23...... are primes Task 8 Use the function isPrime (int) to write a Java program to compute the sum of the first 100 prime numbers. (provide test case) Task 9 Write Java code to read N numbers from file and find their sum Task 10 Write Java code to read N numbers from file and find the sum of only the prime numbers Task 11 Write a Java program to solve quadratic equations Task 12 Write a Java program that Reads a number from the user between 1 and 7 and displays the name of the weekday. (use switch) Task 13 Write a Java program that Reads a number from the user between 1 and 12 and displays the name of the month and the number of days. (use switch)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
