1. Engineering
  2. Computer Science
  3. using visual studio 2017 create this program using c implement...

Question: using visual studio 2017 create this program using c implement...

Question details


Using Visual Studio 2017 Create This Program Using C#

implement source code

Program 3: Design (pseudocode) and implement (source code) a program (name it Circles) to determine if a circle is either completely inside, overlapping with, or completely outside another circler. The program asks the user to enter the center point (X1, Y1) and the radius (R1) for the first circle C1, and the center point (X2, Y2) and the radius (R2) for the second circle C2. The program then determines if the second circle C2 is either completely inside, or overlapping with, or completely outside the first circle C1. Hint: use the sum of R1 and R2 and the distance between the centers to solve the problem. Document your code, properly label the input prompts, and organize the outputs as shown in the following sample runs.

Sample run 1:

Circle 1 center is:   (0,0)

Circle 1 radius is:   6

Circle 2 center is:   (1,1)

Circle 2 radius is:   1

Judgment:             Circle 2 is completely inside circle 1

Sample run 2:

Circle 1 center is:   (0,0)

Circle 1 radius is:   2

Circle 2 center is:   (7,7)

Circle 2 radius is:   1

Judgment:             Circle 2 is completely outside circle 1

Sample run 3:

Circle 1 center is:   (0,0)

Circle 1 radius is:   3

Circle 2 center is:   (2,2)

Circle 2 radius is:   3

Judgment:             Circle 2 is overlapping with circle 1

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution