Restrictions Use Pow 1 Write Class Called Rectanglesandpoints Main Method 3 Program Work E Q37213799

Restrictions do not use Pow

1. write a class called RectanglesAndPoints with a mainmethod

3. the program should work as in the examples below

Examples:

% java RectanglesAndPoints

enter x coordinate for rectangle1: 1

enter y coordinate for rectangle1: 5

enter width for rectangle1: 2

enter height for rectangle1: 64

enter x coordinate for rectangle2: 3

enter y coordinate for rectangle2: 7

enter width for rectangle2: 1

enter height for rectangle2: 9

the distance between the centers of the rectangles is:26.019223662515376


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.