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
AVprozaik [17]
4 years ago
15

Assume there is a variable, h already assigned a positive integer value. Write the code necessary to assign its square to the va

riable g. For example, if h had the value 8 then g would get the value 64.
Computers and Technology
1 answer:
34kurt4 years ago
5 0

Answer:

public class num10 {

   public static void main(String[] args) {

       int h =8;

       double g = Math.pow(h,2);

       System.out.println("The Squared value of "+h+" is "+g);        

   }

}

Explanation:

Using Java programming Language, As stated in the question, h is declared as an int and assigned the value of 8.

a variable g is declared and assigned the square of h using java's power method in Math class

The squared value is then outputed to the console.

You might be interested in
Which of the following commands appears in the INSERT menu or tab?
loris [4]

Answer:

Table

Explanation:

3 0
3 years ago
You are the project manager tasked to implement a critical application in a reputed bank. A client review indicates that you cou
Oksana_A [137]
Hiring based on unbais form
6 0
3 years ago
_________ Code that you write is called primary code, and code that the compiler produces after processing the primary code is c
Kazeer [188]

Answer:

The correct answer for the given question is  "source code"

Explanation:

When you writing a code in any programming language that code is known as  source code.The source code is also known as primary code, when source code is compiles it produce runtime code.

The source code is created by the compiler it can be easily understood by the human being.

for example in c language we write a source code after compilation it produces object code .

5 0
4 years ago
How can you check an orthographic drawing to be sure there are no missing lines
user100 [1]
With an magnify glass
4 0
3 years ago
Eddie typed a word, used the undo command, and then decided he really wanted to keep the word. Eddie should _____.
9966 [12]

Sense Eddie clicked the undo command he wouldn't want to click it again, if he does more words will leave. Sense he did not copy the word, he cannot paste it. And if he would press Undo twice, then that would take him back further, so what he wants to do is click the redo command.


Hope this helps.


<u><em>Marcy~</em></u>

7 0
4 years ago
Read 2 more answers
Other questions:
  • What is a Software Quality Assurance Audit?
    12·1 answer
  • has anyone noticed that brainly has been giving the wrong answers and that the ads are blocking answers or is that just me?
    7·2 answers
  • Jim works the parts counter for a busy car dealership. When answering the phone, Jim often has trouble answering the customer's
    6·1 answer
  • Which boolean operator (and, not, or or) gives you the least results? *?
    6·1 answer
  • The most frequently applied heuristic in problem solving is a(an) _________, which involves repeated tests for differences betwe
    13·1 answer
  • ​ In addition to using national weather sites, you should supplement the local weather information with all of the following EXC
    12·1 answer
  • What is the advantage of using a translation look-aside buffer (TLB), also called associative memory, in the logical-physical ad
    15·1 answer
  • 9 Which of these words is used to begin a conditional statement? ​
    8·1 answer
  • The number of distinct proper subsets of a set with n elements is.
    13·1 answer
  • Different the policies and protocols in the industry
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!