OOP Lab Report 3
OOP Lab Report 3
Lab Report NO # 2
Course Title: Object
Oriented Programming
lab
Course Code: CSE 202 Section: 222 D10
Student Details
Name ID
Code:
import java.util.*;
class Power {
private int number , power ;
public void getnumber (int number , int power) {
this.number = number;
this.power = power;
}
public int power () {
number = (int)Math.pow(number, power);
return number;
}
}
Code:
import java.util.Scanner;
class Radius {
public int radius;
protected void radius (int radius) {
this.radius = radius;
}
}
1. I used draw.io to draw the flowchart and used VScode to run the
program.
4. I ran into some problem while doing this lab project but finally
overcomed it after trying some times.