Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Total score is 100 (50 is extra points). So, the max is 150. Submit in the blackboard Do NOT submit via email. Submit only source

image text in transcribed

Total score is 100 (50 is extra points). So, the max is 150. Submit in the blackboard Do NOT submit via email. Submit only source codes (java file). Put comments with your name and date. Do NOT share/show your code with anyone. If any cheating, your course grade will be F. Start today, not tomorrow! Program 1 (50 points) Make a program to find the area of a rectangle that covers M circles. The rectangle has only vertical and horizontal edges. The rectangle size should be minimized to cover the circles. The circles can be overlapped. For example, when M = 3, C The input and output format is as follows; Input M // number of circles c1x cty c1r Il origin of 1st circle and its radius c2x c2y c2r // origin of 2nd circle and its radius cMx cMy CMr II origin of Mth circle and its radius Output Area of the rectangle Mis number of circles. Following M lines are for circles. Each line has three values for x, y coordinates (e.g. c1x and c1y) as circle's center and radius (e.g. c1r). Area in Output is the estimated rectangle area. Example Input: 3 7.8 3.5 0.5 8.7 8.2 1.2 3.6 7.0 0.8 Output: 45.44

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago