Intro - To OOP Using Java Assignment Maryam Balarabe Adamu
Intro - To OOP Using Java Assignment Maryam Balarabe Adamu
NT
Name: Maryam Balarabe Adamu
Reg.No: NID/CSE/21/005
Course: Introduction to OOP
using Java
Department: Software
Engineering
Semester: 4th Semester
Date: 16th September 2024
2a) Write a Java Program that will calculate:
I. the area of a circle where area = pi * radius ii. circumference
of circle where circumference = 2 * pi * Radius
Assume radius = 3
3a) Write a Java program that will calculate the sum of three
integer number.b) List 4 data types supported by Java Program
3a)
public class SumOfThreeNumbers {
1. int(Integer)
2. double(Floating-point number)
3. char (Character)
4. boolean (True/False)
/* This is a multi-line
comment */
/**
* This is a documentation comment
* which can be used for generating API docs.
*/
int sum = 0;