1. Make a Java code:
Line 1 :
Display Welcome to Pures
CREATE FIVE LINES BLANK SPACE
Line 2 :
Display Systems Analysis Class 2022
CREATE SEVEN LINES BLANK SPACE
Line 3:
Display on screen: YOUR NAME
Line 4: Display on screen: Student ID:
Line 6: Display SEMESTER 1 or SEMESTER 2
2. Make separate java codes to do the following:
i. Area of a circle diameter
ii. Area of a circle radius
iii. Diameter of a circle
3. Write a code to display:
“YOURNAME will make an attempt to be Excellent in all my courses”
e.g. SHAIL NAYARAN will make an attempt to be Excellent in all my coursesHow to calculate the area of a circle?
Area of a Circle formula
So, let’s see how to find the area of a circle. There are several ways to achieve it. Here, we can calculate the area of a circle using a diameter or using a radius.
The diameter is the line that crosses the center of the figure and touches both of its margins. The radius begins at the center of the figure and ends at the figure’s margin
You can find the diameter of a circle by multiplying the radius of a circle by two:
Diameter = 2 * Radius
Area of a circle radius. The radius of a circle calculator uses the following area of a circle formula:
Area of a circle = pi * r2
Area of a circle diameter. The diameter of a circle calculator uses the following equation:
Area of a circle = pi * (d/2)2
Where:
p is approximately equal to 3.142. It doesn’t matter whether you want to find the area of a circle using diameter or radius – you’ll need to use this constant in almost every case.