Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program 1: You will use scanner class and ask users to enter numbers from 0 to 1

ID: 3719942 • Letter: P

Question

Program 1: You will use scanner class and ask users to enter numbers from 0 to 10 numbers. You will then extract only prime numbers and store it in the array. You also need to display entire array on the screen.(50 points)

Program 2: You will ask users to enter student name and number of absent days. You will then print a message according to below logic. NumberOfDaysAbsent < 5: ExcellentRecord NumberOfDaysAbsent < 10 and > 5: NeedAttention NumberOfDaysAbsent <15 and > 10: PoorAttendance

Program 3: You will use the scanner class and ask users following things. - StudentAge - StudentName - StudentAddress You need to only store the results in file if age>18

Explanation / Answer

Please find my implementation of Q1.

Please repost others.

output:

Enter   number > 0 and < 10
8
Prime numbers:
2 3 5 7 11 13 17 19

Process finished with exit code 0

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote