OOP_Lab_Manual_1
OOP_Lab_Manual_1
2 Problem analysis
In structured programming we learn different types of problem like prime number generation, Fibonacci num-
ber generation, checking odd and even numbers. In this lab, we will solve all types of this problem in java
programming language, .
4 Input/Output
Output of the program is given below.
Enter a number: 5
This is a Prime Number
Enter a number: 10
This is not a Prime Number
6 Input/Output
Output of the program is given below.
Enter value of n: 5
Fibonacci Series= 0 1 1 2 3
Enter value of n: 9
Fibonacci Series= 0 1 1 2 3 5 8 13 21
8 Lab Task (Please implement yourself and show the output to the
instructor)
1. Implement summation of factorial number in java.
10 Policy
Copying from internet, classmate, seniors, or from any other source is strongly prohibited. 100% marks will be
deducted if any such copying is detected.