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
xz_007 [3.2K]
2 years ago
10

Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s sq

uare
Computers and Technology
1 answer:
Kisachek [45]2 years ago
8 0

Answer:

public static int powOfTwo(int input) {

 return input*input;

}

You will have to call this method in main
for printing it, write

System.out.println(powOfTwo(your number));

in public static void main(str[]args) {

}

You might be interested in
Which era marked a switch from agricultural practices to industrial practices?
sashaice [31]

The Industrial Revolution is the era that is marked a switch from agricultural practices to industrial practices.

<h3>What was the Inductrial revolution?</h3>

The Industrial revolution is the transition period between 1820 to 1840. The era was the development of new industries and manufacturing of products and goods in Great Britain.

Thus, the Industrial Revolution is the era that is marked a switch from agricultural practices to industrial practices.

Learn more about Inductrial revolution

brainly.com/question/1617908

#SPJ1

7 0
1 year ago
1. The running configuration is also known as the _____________ (Select Two) a. Startup config b. Working configuration c. Curre
Shtirlitz [24]

Answer:

1. The running configuration is also known as the <u><em>b. working configuration</em></u>

<u><em>c. current configuration</em></u>

Explanation:

hopes this help (:

6 0
2 years ago
Similarly, the Windows server OS can run regular workstation applications such as MS Office or Adobe Photoshop. Why is this a ba
aniked [119]

Answer:

It affects the system speed

Explanation:

The normal windows server OS can run the regular workstation applications like the MS Office or the Adobe Photoshop. Photoshop is an editor that have one of its function as being an editor that helps to edit the picture itself by changing the pixels or edit anything in the image.

On the other hand, Ms Office would help to crop or resize or adjust the brightness etc.

When it comes to cropping or reducing/increasing the brightness of the images then Office is of agreat help as it is free where as for photo shop advanced editing to the images can be done.There is the situation where both needs to be used.

Also running both the application on a egular workstation would make the system slow and also both the applications would not be required at the same time at many times.

8 0
3 years ago
A looping construct that continues to repeat until the expression becomes false is
Elis [28]

Answer:

a while loop

Explanation:

for an example, while x<4:

the program will end when the value of x greater than 4.

8 0
3 years ago
Read 2 more answers
A web designer is creating a web site and wants each browser to resize the text size to look the same in each device. what measu
adelina 88 [10]
The designer could use the measurements in pixels. 
4 0
3 years ago
Other questions:
  • Finding information on the web was made easier by _____________, which provide on-screen menus, making navigation of the web as
    12·1 answer
  • What does ADF means????
    13·2 answers
  • Given: The following if statement uses an overloaded &gt; operator to determine whether the price of a Car object is more than $
    5·1 answer
  • Scientific models can be used for a variety of different purposes. Which of the following statements about scientific models is
    7·2 answers
  • Which of these expressions evaluates to 4.0?
    12·2 answers
  • 6. Write a program that can multiply an n x m matrix and m x n matrix together: The input specifications are these: Read n and m
    11·1 answer
  • Which of the following could not be represented by columns in the SPSS data editor? a. Levels of between-group variables. b. Lev
    11·2 answers
  • I’m nobody. Who are you?
    9·2 answers
  • Stephen is looking through some design diagrams created for a specific application. He spots a diagram which uses a parallelogra
    14·1 answer
  • Figure out what this says:<br><br> ?driew tib a kool ti seoD
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!