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

JAVA!!

Answers

Answer 1

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:


Related Questions

This is used to track a user’s browser and download history with the intent to display popup banner ads that will lure a user into making a purchase.

Select one:
Adware
Worm
Phishing
Malware

Answers

Answer:

Adware

Explanation:

Adware is software designed to display advertisements on your screen, most often within a web browser.

Hope that helps.

A software that used to track a user’s web browser and download history with the intent to display popup banner adverts (ads) that will lure an end user into making a purchase is: A. Adware.

An adware is also referred to as an advertisement-supported software and it can be defined as a software application (program) that is designed and developed to automatically display advertising materials such as banners or pop-up adverts (ads) on the graphical user-interface (GUI) of a user's computer system or mobile device.

The main purpose for the development of an adware is to automatically display popup banner adverts (ads), in order to lure or convince an end user into making purchase of the advertised product or service.

In conclusion, an adware is a software that is typically used to track and gather information about a user’s web browser and download history with the intent to display popup banner adverts (ads) that will lure an end user into making a purchase.

Read more on adware here: https://brainly.com/question/9692296

4.5 code practice edhesive

Answers

Answer:

n= input("Please enter the next word: ")

x=1

while(n != "STOP"):

 print("#" + str(x) + ": You entered " + n)

  x=x+1

  n= input("Please enter the next word: ")

print("All done. " + str(x-1) + " words entered.")

Explanation:

PLEASE HELP asap 60 POINTS
needs to be in Java

A programmer has written a method called replaceLetter that counts the amount of times a letter is present in a word. Your job is to modify this existing method to fulfill a new purpose.

Rather than count the instances of a letter in a String, write a program that replaces all instance of one letter with another. You should directly modify replaceLetter to get this program to work. In the starter code, replaceLetter only has two parameter values. Your new version should have a third parameter to indicate which String value is replacing the existing letter.

For example,

replaceLetter("hello", "l", "y")
returns

"heyyo"
Sample output:

Enter your word:
hello

Enter the letter you want to replace:
l

Enter the replacing letter:
x
hexxo
Hint: The letters will be assigned from the user as String values. Make sure to use String methods to compare them!

Answers

import java.util.Scanner;

public class JavaApplication45 {

   public static String replaceLetter(String txt, String txt1, String txt2 ){

       char one = txt1.charAt(0);

       char two = txt2.charAt(0);

       String newTxt = "";

       for (int i = 0; i < txt.length(); i++){

           char c = txt.charAt(i);

           if (c == one){

               newTxt += two;

           }

           else{

               newTxt += c;

           }

       }

       return newTxt;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter your word:");

       String word = scan.nextLine();

       System.out.println("Enter the letter you want to replace:");

       String txt1 = scan.next();

       System.out.println("Enter the replacing letter:");

       String txt2 = scan.next();

       System.out.println(replaceLetter(word,txt1,txt2));

   }

   

}

I hope this helps!

Why do digital media professionals create portfolios of their work?

Answers

Answer:

Then you're going to have to create a digital media portfolio in order to showcase your technical skills and knowledge. It can act as your online resume. You can use it to showcase your related work and projects to potential employers and clients online.

Explanation:

The interprets the data while it is in RAM​

Answers

Answer:

The input interprets the data while it is in RAM.

Explanation:

Hi! Is anyone really good at making pretty schedules and designs? I don't have any money, but I could give points. I'll give a small number of points on this answer, but if you make the schedule I'll give you lots of points! (I'll send you the actual parts of the schedule I just need someone to make it look pretty) Thank you so much!

Answers

Could I see what you would like it to look like?

Complete the sentence

-------- are technologies support virtual communities and the sharing of content with friends and family.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is: Online community technologies.

So, we can fill this question with the correct option as below:

Online community technologies are technologies that support virtual communities and the sharing of content with friends and family.

As we know that online community technologies are those technologies where people of the same group or interest make community virtually online. Where they can share their contents such as pictures, videos, thaught, ideas, etc with the group or family members.

There are different technologies that support virtual communities to share content with friends and family.

Such as Zoom meetings, Sk ype, Face book, Insta gram etc.

Answer:

Taking the quiz rn and I put social media

Explanation:

Social media is the closest description to this however it may be collaborative tools if it’s not social media.

You have to match the letter nexts to the numbers

Answers

Answer:

Word is for business letter 4+a

2+c Monthly budget expenses

3+b is for presentation

1+d department store inventory

What must you consider when determining the efficiency of an algorithm? Select two choices.

Answers

Answer:

C. The number of characters used to write the program

And

D. The length of time required to run the program

Explanation:

Hope this helped

PLEASE HELP Due Today

Match the term with one of its characteristics.

1. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse.

2. Log managers read your system logs and look for patterns and make reports.

3. Created an elastic infrastructure that expanded and contracted as demand changed.

cloud

maintain security

data center​

Answers

The matchup are:

1. Created an elastic infrastructure that expanded and contracted as demand changed -cloud2. Log managers read your system logs and look for patterns and make reports.- Maintain security 3. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse-data center​

What is the software  about?

The  Cloud computing is one that gives a form of elastic infrastructure that gives room for on-demand allocation as well as deallocation of resources.

Lastly  Log managers are known to be computer tools that tends to read system logs as well as look for patterns in the data to see security threats.

Learn more about software   from

https://brainly.com/question/28224061

#SPJ1

WHAT DOES INFORMATION TECHNOLOGY DO??
Do they offer services or products

Answers

Yes

Explanation: Information technology, or IT, describes any technology that powers or enables the storage, processing and information flow within an organization. Anything involved with computers, software, networks, intranets, Web sites, servers, databases and telecommunications falls under the IT umbrella.

i emailed someone and im sure that they emailed back however it says nothing has arrived in my inbox what do I do

Answers

Answer:

report it or check ur spam mail or refresh the page

Explanation:

good luck figuring it out :)

<BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>
</FORM>
</BODY>
</HTML>
Write the question of this programming .​

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This is an inference question. I mean that in this question, an answer is given, you have to generate the question.

The given code is :

BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>

</FORM>

</BODY>

</HTML>

So, the answer (i.e. to write a question) is

Write a HTML code that displays a button in its body with the text "Submit Your Form ".

When numbers are changed in cells that are involved in formulas, the formulas are automatically
changed
highlighted
O removed
recalculated

Answers

When numbers are changed in cells that are involved in formulas, the formulas are automatically
changed
highlighted
O removed
recalculated
removed

I think it is O removed

Who you think is better? Ninja or TFue ,btw do you know who icebear is?

Answers

Answer:

no, no i dont think i will.

Explanation:


1. As part of your community, your school, and your neighbourhood, how else does ICT have an impact on social
awareness? What are these changes that are neglected in the bigger perspective?

Answers

Answer:

helthcare systems, aviation, entertainment, retail, etc

Explanation:

ICT has made life easy, it has made an interconection accross the world. in the helthcare system, ICT has created a positive impact because now a days body check up is been made through computers.

in the aviation, we use computers to control the the traffic of airplanes.

HELP ME ASAP
Fred is using an enterprise system to create a database solution for his office. What would be the advantage of using an enterprise system?

Enterprise systems are single processor systems that do not take up many resources. However, they can be pipelined over multiple processors to lesson the computation time. Enterprise solutions provide a single database to simplify operation. These systems are faster and provide data redundancy.

Answers

Answer:

Enterprise solutions provide a single database to simplify operation

Explanation:

Which of the following would be used to communicate an idea or concept visually? podcast transcript building design speech
A.Podcast
B.Transcript
C.Building design
D.Speech

Answers

C, building design. Its the only visual one, the rest have to do with speaking/listening.

Answer:

C. building design

Explanation:

I did the test

Direction: Put a check (/)mark if the statement is
correct and Irofessional. Letter W if it is incorrect.

Answers

Explanation:

Xghhdghxhdhzhhzshh, hdhshxxx

Who here would like to play among us with me?
Time: Friday, November 13

Answers

Answer:

sure

Explanation:

Choose the parts of the browser window. PLEASE ANSWER QUICKLY TEST

Answers

it would be display window

Answer:

display window

Explanation:

as it is where the browsed data is to be displayed

PLEASE HELP!!
Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data passed from one computer to another?


message


package


packet


transmission

Answers

Answer:

Paquete de red o paquete de datos es cada uno de los bloques en que se divide la información para enviar, en el nivel de red. Por debajo del nivel de red se habla de trama de red, aunque el concepto es análogo. En todo sistema de comunicaciones resulta interesante dividir, la información a enviar, en bloques de un tamaño máximo conocido. Esto simplifica el control de la comunicación, las comprobaciones de errores, la gestión de los equipos de encaminamiento (routers), etcétera.

Al igual que las tramas, los paquetes pueden estar formados por una cabecera, una parte de datos y una cola. En la cabecera estarán los campos que pueda necesitar el protocolo de nivel de red; en la cola, si la hubiere, se ubica normalmente algún mecanismo de comprobación de errores.

Explanation:spero  teyaudee

Answer:

Packet

Explanation:

A data packet is the precisely formatted unit of data that travels from one computer to another.

(Confirmed on EDGE)

I hope this helped!

Good luck <3

The Monroe Doctrine promised that the United States would:
A. not accept new colonies in the Americas.
B. cut itself off from nearly all foreign trade.
C. send its military to defend all new democracies.
D. take a more active role in European affairs.​

Answers

Answer:A

Explanation:

The Monroe Doctrine promised that the United States would not accept new colonies in the Americas. The correct option is A.

What is Monroe Doctrine?

The Monroe Doctrine is the most well-known example of US policy toward the Western Hemisphere.

The doctrine, buried in President James Monroe's routine annual message to Congress in December 1823, warns European nations that the United States will not tolerate further colonization or puppet monarchs.

Although initially ignored by Europe's great powers, the Monroe Doctrine eventually became a cornerstone of US foreign policy.

President James Monroe of the United States declared the United States to be the protector of the Western Hemisphere in 1823, prohibiting European powers from colonizing additional territories in the Americas.

The doctrine's three main concepts separate spheres of influence for the Americas and Europe, non-colonization, and non-intervention were intended to mark a clear break between the New World and Europe's autocratic realm.

Thus, the correct option is A.

For more details regarding Monroe Doctrine, visit:

https://brainly.com/question/290388

#SPJ5

Simple Arithmetic Program
Using the instructions from Week 1 Lab, create a new folder named Project01. In this folder create a new class named Project01. This class must be in the default package. Make sure that in the comments at the top of the Java program you put your name and today's date using the format for Java comments given in the Week 1 Lab.
For this lab, you will write a Java program to prompt the user to enter two integers. Your program will display a series of arithmetic operations using those two integers. Create a new Java program named Project01.java for this problem.
Sample Output: This is a sample transcript of what your program should do. Items in bold are user input and should not be put on the screen by your program. Make sure your output looks EXACTLY like the output below, including spacing. Items in bold are elements input by the user, not hard-coded into the program.
Enter the first number: 12
Enter the second number: 3
12 + 3 = 15
12 - 3 = 9
12 * 3 = 36
12 / 3 = 4
12 % 3 = 0
The average of your two numbers is: 7
A second run of your program with different inputs might look like this:
Enter the first number: -4
Enter the second number: 3
-4 + 3 = -1
-4 - 3 = -7
-4 * 3 = -12
-4 / 3 = -1
-4 % 3 = -1
The average of your two numbers is: 0
HINT: You can start by retyping the code that was given to you in Exercise 3 of ClosedLab01. That code takes in a single number and performs a few arithmetic operations on it. How can you modify that code to take in two numbers? How can you modify it to display "number * number =" instead of "Your number squared is: "? Take it step by step and change one thing at a time.
You can use the following as a template to get you started. Note that you must create your class in the default package and your project must be named Project01.java for the autograder to be able to test it when you submit it.

Answers

Answer:

Written in Java

import java.util.*;

public class Project01{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int num1,num2;

 System.out.print("Enter first number: ");

 num1 = input.nextInt();

 System.out.print("Enter second number: ");

 num2 = input.nextInt();

 System.out.println(num1+" + "+num2+" = "+(num1 + num2));

 System.out.println(num1+" - "+num2+" = "+(num1 - num2));

 System.out.println(num1+" * "+num2+" = "+(num1 * num2));

 System.out.println(num1+" / "+num2+" = "+(num1 / num2));  

 System.out.print("The average of your two numbers is: "+(num1 + num2)/2);

}

}

Explanation:

import java.util.*;

public class Project01 {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

This line declares myfirstnum and mysecnum as integer

 int myfirstnum,mysecnum;

This line prompts user for first number

 System.out.print("Enter first number: ");

This line gets user input

myfirstnum= input.nextInt();

This line prompts user for second number

 System.out.print("Enter second number: ");

This line gets user input

 mysecnum = input.nextInt();

This line calculates and prints addition operation

 System.out.println(myfirstnum+" + "+mysecnum+" = "+(myfirstnum + mysecnum));

This line calculates and prints subtraction operation

 System.out.println(myfirstnum+" - "+mysecnum+" = "+(myfirstnum - mysecnum));

This line calculates and prints multiplication operation

 System.out.println(myfirstnum+" * "+mysecnum+" = "+(myfirstnum * mysecnum));

This line calculates and prints division operation

 System.out.println(myfirstnum+" / "+mysecnum+" = "+(myfirstnum / mysecnum));  

This line calculates and prints the average of the two numbers

 System.out.print("The average of your two numbers is: "+(myfirstnum + mysecnum)/2);

}

}

Learning Task 5. Identify the terms being described below. Write your answer in your answer
sheet.
1. This refers to the collection, transportation, processing or disposal, managing and
monitoring of waste materials.
2. This refers to the hazard control which involves the measure of replacing one hazardous
agent or work process with less dangerous one.
3. A very important method of controlling hazards which involves proper washing of your hair,
skin, body and even your clothes.
4. This refers to the preparedness for the first and immediate response in case of any type of
emergency.
5. This hazard control refers to the removal of a specific hazard or hazardous work process.
6. What is the term used to call the range of concentration over which a flammable vapor
mixed with air will flash or explode if an ignition is present?
7. A cross-disciplinary area concerned with protecting the safety, health and welfare of people
engaged in work or employment.
8. The term used in hazard control which involves changing a piece of machinery or work
process.
9. The term used to call any piece of equipment which is used to protect the different parts of
the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots,
etcetera.
10. This is a form of hazard control which involves manipulation of worker/employee’s schedule
and job rotation.

Answers

Answer:

1. Waste management.

2. Substitution.

3. Personal hygiene practices.

4. Emergency preparedness.

5. Elimination.

6. Flammability limit.

7. Occupational safety and health (OSH).

8. Engineering controls.

9. Personal protective equipment (PPE).

10. Administrative controls.

Explanation:

1. Waste management: this refers to the collection, transportation, processing or disposal, managing and monitoring of waste materials.

2. Substitution: this refers to the hazard control which involves the measure of replacing one hazardous agent or work process with less dangerous one.

3. Personal hygiene practices: a very important method of controlling hazards which involves proper washing of your hair, skin, body and even your clothes.

4. Emergency preparedness: this refers to the preparedness for the first and immediate response in case of any type of emergency.

5. Elimination: this hazard control refers to the removal of a specific hazard or hazardous work process.

6. Flammability limit: is the term used to call the range of concentration over which a flammable vapor mixed with air will flash or explode if an ignition is present.

7. Occupational safety and health (OSH): a cross-disciplinary area concerned with protecting the safety, health and welfare of people engaged in work or employment.

8. Engineering controls: the term used in hazard control which involves changing a piece of machinery or work process.

9. Personal protective equipment (PPE): the term used to call any piece of equipment which is used to protect the different parts of the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots, etcetera.

10. Administrative controls: this is a form of hazard control which involves manipulation of worker/employee’s schedule and job rotation.

Tormund wants to build a proxy firewall for his two computers, A and B. How can he build it?
A.
by connecting computer A with computer B and computer B to the proxy firewall
B.
by connecting a different firewall to each computer
C.
by connecting computer A to computer B through the proxy firewall
D.
by connecting only one of the computers to the firewall

Answers

Answer:

b

Explanation:

how to take a pic with a cumputer

Answers

Answer:

Ctrl+Shift+4

Explanation:

Answer:

Use Snip+Sketch on your taskbar

It looks like this~

Linux is a powerful and free OS®️
-True
-False

Answers

Answer:

TRUEE

Explanation:

It’s is true that Linux is powerful and free

Select the correct answer from the drop-down menu.
Chrissie shirks the additional work given to her.
She lacks the trait of

Answers

Answer:

Responsibility

Explanation:

Advantages of Linux include_____.
(Multiple choice)(photo attached)

-cost
-the ability to tweak the application
-ease of use
-security
-a time table for customer support

Answers

Answer:

The ability to tweak an application, and i think security. I've barely scratched the surface of linux so my answer may not be 100% accurate

Explanation:

Other Questions
I NEED HELP on THESE QUESTIONS EXCEPT ONE. Only do 2 and 3 HELP ME!!!!!How are bacteria, a rose, and an elephant alike? How did James Oglethorpe gain the friendship of Tomochichi and the Yamacraw Indians, leading to the founding of Savannah? A. Mary Musgrove, who was British and Yamacraw, helped them speak to each other and bridge cultural differences. B. Oglethorpe ordered his men to help the Yamacraw defend their territory against attacks by the Cherokee people. C. Oglethorpe promised that the English would capture and return Yamacraw land that had been taken by the Spanish. D. Henry Ellis, the second royal governor of Georgia, authorized Oglethorpe to distribute land grants to the Yamacraw. In a criminal court case, a deadlocked jury results in A. an appeal. B. a mistrial. C. a sentence. D. a verdict. Tommy divided 768 by 8 and his answer was 97 r2. He made a mistake. What did he do wrong? Marco buys a certain brand of shampoo for $7.25 plus 7.5% tax. How much will Marco pay in total for the shampoo? (Round your answer to the nearest hundredth) Kathys father thinks she spends too much time on the phone. He wants to see how much time she spent talking last month, but he does not have the phone bill; he has only his checkbook, which tells him that her bill last month was $110. The phone company charges a monthly base fee of $50, plus ten cents per minute. How many minutes did Kathy spend on the phone last month? Help I need an answer!Do you lose points when you ask a question? PLEASE HELP I NEED THIS TODAY!! During what period in ancient Egypt were the pyramid built What is the perimeter of the equilateral triangle if one side is 15 feet show ur working out and thank u how has technology affected globalization in the 20th century PLS HELP ASAP! WILL GIVE BRAINLIEST!!! Use "Conformity" and "Funny in Farsi" to answer questions 10-12. Then fill in the answers on your answer document.10.What is one similarity between the endings of the two texts ?Both demonstrate that all people must eventually conformBoth end with an anecdote about how they were helped.Both affirm that ideas in the text have been proven by previous experience.Both end with proof that all people are expected to conform 5. What was the real intent of the Sugar Act? how did Confucianism help ancient china Help me pls!!! last questionTori needs to turn her Turtle to the left 90 pixels. Which line of code should Tori use?tina(90)tina.back(90)tina.left(90)tina.right(90) Which molecules provide the elements for creating stored chemical energy for the cell? Ifyouincreased one mass 2 times and anothermass by 4 times how would the force of gravitybetween them change? (02.05 LOWhich type of heat transfer takes place through electromagnetic waves? (3 points)