1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marissa [1.9K]
3 years ago
7

Write code which takes inputs and creates two Rectangle objects (using the edhesive.shapes.Rectangle class) and compares them us

ing the equals method.
JAVA!!
Computers and Technology
1 answer:
iogann1982 [59]3 years ago
6 0

Answer:

System.out.println("Enter length:");

Scanner scan = new Scanner(System.in);

Double x = scan.nextDouble();

System.out.println("Enter 2 lengths:");

Double a = scan.nextDouble();

Double b = scan.nextDouble();

Rectangle rect = new Rectangle(x);

Rectangle rect2 = new Rectangle (a,b);

if (rect2.equals(rect)){

 System.out.print("Congruent Rectangles");

}

else {

 System.out.print("Different Rectangles");

}

 }

}

Explanation:

You might be interested in
What are the pros and cons of using the internet in a medical office setting
kherson [118]
The Pros of using the internet in a medical office setting are mostly that an unlimited amount of knowledge can be gained with the click of a button, and communications between doctors are practically instantaneous. The cons are mostly that these systems can be hacked into, which can leak patient information, and that sometime the Internet can "go down", which can reduce productivity. 
4 0
3 years ago
_________ devices often pose special challenges to investigators because they can be configured to use advanced encryption and t
scoray [572]

Answer:

Portable

Explanation:

Most of electronic devices can be programmed in a way that cant deny investigator access to certain information on the device and also, devices can be manipulated by an external hands to implicate people.

due to those uncertainty, some states place little wait on evidences obtained from those devices.

4 0
3 years ago
Which of the following is not an impact device?<br> Joy Stick<br> Track Ball<br> Mouse<br> Printer
likoan [24]
A joystick is not an impact device.
3 0
3 years ago
Express 0.0005 x 10-4 farads as picofarads
Oksana_A [137]
0.0005 x 10⁻⁴ Farad = 0.000 000 05 Farad.
1 pF = 0.000 000 000 001 Farad

Divide them and get 50000 pF.
3 0
3 years ago
Read 2 more answers
Edhesive 9.3
Wittaler [7]

Explanation:

Question 1:

Ans: index

Index is a unique position to identify a particular value in an array.

Question 2:

Ans: Element

Element is the individual value present in the array. An array is used to store one or more element.

Question 3:

Ans: String

We can find from the question that the value is enclosed within "" (double quotes). So, the value added to the array is string. Any value that is enclosed within double quotes are termed as string.

Question 4:

Indexes are always int. Array index are never float. This is because, it represent the position.

Question 5:

The output will be 3. The reason is there are 3 values appended to the array "stuff" in the given piece of program.

Question 6:

The given code is an example of initializer list. Price is a list variable where the values are initialized.

9 0
4 years ago
Other questions:
  • Gathering information with your eyes is called
    13·2 answers
  • Give three facts about the history of the train shongololo
    9·1 answer
  • From the following list choose all the tasks an operating system performs.
    5·2 answers
  • Early in the history of technology, the development of tools and machines was based on _____ versus scientific knowledge as is d
    14·1 answer
  • Which of the following is not one of the Generally Accepted Recordkeeping Principles ("The Principles®")? a. Accountability b. S
    11·1 answer
  • Name the different payment systems the shophive.com isusing?
    15·1 answer
  • What is a common use for spreadsheets? A.drawing B.writing C.budgeting D.video production
    8·1 answer
  • The internet's data gathways rely on what kind of hardware devies to route data to its destination?
    14·1 answer
  • Написати лабараторну, на тему:Вивчення властивостей та застосування шаруватих пластиків та кермаміки
    13·1 answer
  • Explain four sitting postures in a computer laboratory​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!