1. Experiment 1
Student Name: Kashish dixit UID: 20BCA1108
Branch:BCA Section/Group:2/B
Semester: 4th
Date of Performance: 16/02/2022
Subject Name: INTERNETPROGRAMMINGLAB Subject Code:20CAP-255
1. Aim/Overview of thepractical:
WriteaJav progra mtha tprom ptstheuse rfora nintegera ndthenprints outallprime numbers up
to thatinteger.
2. Task to bedone:
Create a java class with suitablename.
Enter aninteger.
Run for loop from 2-n(n=integer).
Check whether the no is Prime ornot.
3. Algorithm/Flowchart:
Start ofProgram
Take two integer n andp.
Take n as userinput.
Use for loops to check all the Prime number between2-n.
If n is Prime printn.
If n is not prime,skip.
End of Program
3. Learning outcomes (What I have learnt):
1. I learned how to provide user input injava.
2. I learned about java scannerclass.
3. Learned how to conditionalStatement.
4. Learned to use the concept ofloops.
Evaluation Grid:
Sr. No. Parameters Marks Obtained Maximum Marks
1. Demonstration and Performance 5
2. Worksheet 10
3. Post Lab Quiz 5