Question: In java Program 1: Make a program that calculates the area of a shape. The shape is a part of circle after cutting the circle

In java
Program 1: Make a program that calculates the area of a shape. The shape is a part of circle after cutting the circle by a line. The program has to check if the line segment can clearly cut the circle, then measure the area of the larger part of the shape after the cut. Input: x y // Origin of circle r // Radius of circle X1, Y, X2, yz // two points on a line Output: a // Area of the shape after cutting Example Input: 4 4 86 31 Output: 11.42
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
