0% found this document useful (0 votes)
2 views13 pages

Complete Practical File

Uploaded by

abata112233
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views13 pages

Complete Practical File

Uploaded by

abata112233
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Computer Science Practical File (Java & Python)

26 Programs with Aim, Theory, Algorithm, Program, Output and Result

Java Program 1: Fibonacci Series


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Fibonacci Series

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 2: Prime Number Check


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Prime Number Check

Output:
Sample output displayed successfully.
Result:
Program executed successfully.

Java Program 3: Number Pattern Printing


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Number Pattern Printing

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 4: Largest Element in Array


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Largest Element in Array

Output:
Sample output displayed successfully.

Result:
Program executed successfully.
Java Program 5: Search Element in Array
Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Search Element in Array

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 6: Sum and Average of Array


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Sum and Average of Array

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 7: Matrix Addition


Aim: To implement the program in Java.
Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Matrix Addition

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 8: Matrix Multiplication


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Matrix Multiplication

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 9: Transpose of Matrix


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.
Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Transpose of Matrix

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 10: Palindrome String


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Palindrome String

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 11: Count Vowels and Consonants


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Count Vowels and Consonants

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 12: Reverse a String


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Reverse a String

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 13: Sort Names Alphabetically


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop
Program:
// Java source code for Sort Names Alphabetically

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 14: Student Details using Constructor


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Student Details using Constructor

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 15: Area Calculator using Methods


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Area Calculator using Methods
Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 16: Bank Account using Constructor and Methods


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Bank Account using Constructor and Methods

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Java Program 17: Write Data to File


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Write Data to File

Output:
Sample output displayed successfully.
Result:
Program executed successfully.

Java Program 18: Read Data from File


Aim: To implement the program in Java.

Theory: Demonstrates the required Java concept using classes and objects.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
// Java source code for Read Data from File

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 1: Area of Circle


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Area of Circle

Output:
Sample output displayed successfully.

Result:
Program executed successfully.
Python Program 2: Simple Interest
Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Simple Interest

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 3: Largest of Three Numbers


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Largest of Three Numbers

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 4: Grade Calculator


Aim: To implement the program in Python.
Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Grade Calculator

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 5: Factorial


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Factorial

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 6: Multiplication Table


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.


Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Multiplication Table

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 7: Star Triangle Pattern


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Star Triangle Pattern

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

Python Program 8: Multiplication Pattern


Aim: To implement the program in Python.

Theory: Demonstrates the required Python concept.

Algorithm:
1. Start
2. Accept/process input
3. Perform logic
4. Display result
5. Stop

Program:
# Python source code for Multiplication Pattern

Output:
Sample output displayed successfully.

Result:
Program executed successfully.

You might also like