Write a java program for problem 4.4 from the textbook. Modify your java program to accommodate the following additional requirements: The program will read a text file (input.txt) that contains a number of lines and a circle in the given format below. A sample input.txt file is attached to the assignment. N (int: number of lines up to 10) X1a Y1a X1b Y1b (int: endpoints of line 1) X2a Y2a X2b Y2b (int: endpoints of line 2) … XNa YNa XNb YNb (int: endpoints of line N) Xc Yc R (int: Center point co-ordinates and Radius of circle)

Solved
Show answers

Ask an AI advisor a question