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
salantis [7]
3 years ago
8

Write a method that takes a Rectangle as a parameter, and changes the width so it becomes a square (i.e. the width is set to the

value of the length) (java)
Computers and Technology
1 answer:
Bumek [7]3 years ago
3 0

Answer:

Explanation:

The following code is written in Java, it is a function/method that takes in the length and width of the Rectangle as parameters and then overwrites the width to match the length. Then it prints both the length and width.

   public static void rectangleToSquare(int width, int length) {

       width = length;

       System.out.println("Width: " + width);

       System.out.println("Length: " + length);

       

   }

You might be interested in
Adassadad saflalfaklfajfklajfalkfjalkfjalkfalkf
BlackZzzverrR [31]

Answer:

this belongs on r/ihadastroke

Explanation:

5 0
3 years ago
Read 2 more answers
What would happen without satellites???
laila [671]

Answer: without satellites there would be no way for the world to communicate

Explanation:

4 0
3 years ago
Read 2 more answers
Tom and jerry opened a new lawn service
DedPeter [7]
That’s cool sirrrrrrrr
6 0
3 years ago
Read 2 more answers
Lenny is a cheese packer at Cheddar Express. He is paid $.52 for every case of cheese he packs and loads onto delivery pallets M
Natali [406]

Answer:

oof.

Explanation:

6 0
3 years ago
Computer is a versative Idiot, explain with respect to teaching and learning<br>​
Verizon [17]

Answer:

Computer is a versative Idiot, explain with respect to teaching and learning

Explanation:

Primary Logo

Introduction to Computer

Subject: Computer

Home Grade 9 Computer Introduction To Computer Introduction To Computer

Search for notes, Q&As, Videos, etc.

Syllabus

Introduction to Computer

Introduction to Computer

History of Computer

Applications of Computer

Electro Mechanical Computers

Generation of Computer

Computer Systems

Types of computer

Computer Hardware

Computer Software

Number System

Operating System

Information System and Social Impact of Computer

Information Technology Policy

Concept of E-Governance

Webpage Designing

Algorithm and Flowchart

Program and Programming Languages

QBASIC Programming

Overview

Computers are the machines that can perform tasks or calculations according to set of instructions or programs. This note introduces you with the computer.

Note

Things to remember

Videos

Exercise

Quiz

Introduction to Computer

Computers are the machines that can perform tasks or calculations according to set of instructions or programs. The term computer is derived from the word compute which means to calculate. Computer is an electronic device that can perform arithmetic and logical calculations faster. The first fully electronic computers, introduced in 1940s, were huge machines that required teams of people to operate. Compared to those early machines, today's computers are not only thousand times faster, they can fit on your desk, lap and even pocket. You must appreciate the impact of computer in our day-to-day life. The computer has been useful in reservation of tickets in Airlines and Railways, payment of telephone and electricity bills, deposits etc.

Advantages of computer

Computers are very fast due to which thousands of job can be performed within a short period of time.

Complex mathematical problems and logical operations can be solved by using this computer.

As computer is a versatile device, multiple task like communication, graphics, documentation can be done.

A huge amount of data can be stored and retrieved as it has high storage capacity.

Disadvantages of computer

Computers are machine hence, they have no brain so they work according to the program instructions set inside it.

It is an electronic device and it uses electrical sources to work, so it is very risky to store data and information on the computer independently because some electrical and electronic damages may damage the data. So we have to make regular backup of the data.

Since computers are very expensive device, it becomes beyond the capacity of general user. But now a day its price is going down than past.

Computers require dustless and temperature maintained environment for best performance

6 0
2 years ago
Other questions:
  • Janelle is organizing an outline for an investigative report about the benefits of taking a 30-minute walk each day. which of th
    11·2 answers
  • The True Confessions of Charlotte Doyle begins with what is called a(n) _____.
    15·1 answer
  • Select the best word or phrase to complete each sentence Jobs that require you to use your v are typically rewarding Individuals
    12·1 answer
  • The text defines ________________ as the obsessive use of computers, or the unauthorized access and use of networked computer sy
    14·1 answer
  • How do you turn on the Track Changes feature in a word-processing document?
    12·1 answer
  • Enna always says thank you when people give her gifts. She even writes thank-you cards. On holidays, Enna remembers
    9·1 answer
  • Write a java program that prompts the user to input the elapsed time for an event in hours, minutes, and seconds. The program th
    13·1 answer
  • Which of the following can spreadsheet programs help a person with? (choose all that apply.)
    9·1 answer
  • What is the first things u do upon seeing this sheet?​
    14·2 answers
  • Help ne please!! Even if I press 3 times it doenst work.. when I try to turn it off either. Any suggestions? (using ipad)​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!