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
yawa3891 [41]
3 years ago
13

1. Here is a program segment to find the quantity base . Both base and exp are entered at the keyboard. System.out.println("Ente

r base and exponent: "); double base = IO.readDouble();// read user input double exp = IO.readDouble(); // read user input /* code to find power, which equals baseexp */ System.out.print(base + " raised to the power " + exp); System.out.println(" equals " + power); Which code is a correct replacement for /* code to find power, which equals baseexp */ ?

Computers and Technology
1 answer:
zavuch27 [327]3 years ago
3 0

Answer:

The correct code to this question can be de4fined as follows:

double power;

power = Math.pow(base, exp);

Explanation:

In the given question the choices were missing, that's why we defined the correct code only.

  • In the given code a two double variable "base and exp" is declared, that input the value from the user-side, and store its value into there respective variables.
  • In the next step, "power", that is a double variable is declared, which uses the  "Math.pow" function that calculates given values power and prints its value.

please find the attachment of the full code.

You might be interested in
You have created a new dhcp scope with address range 192.168.1.1 to 192.168.1.254. you have five servers configured with static
galben [10]
Reduce the scope to <span>192.168.1.1 .. 192.168.1.239, to avoid conflicting IP's.</span>
6 0
4 years ago
Technology deals with...
aivan3 [116]

Answer:

<em>C</em>

Explanation:

technology deals with the use of computers in school and work

4 0
3 years ago
What must be the same for each variable in an array in compiled languages?
sukhopar [10]

The data type must be the same for each item in the array.

7 0
3 years ago
Ms. Osteen gives her class an assignment to insert background color that gradually changes from blue to green. To accomplish thi
irina1246 [14]

Answer:

C

Explanation:

7 0
3 years ago
Select the correct answer.
Nutka1998 [239]

Answer:

database design is the correct e

6 0
3 years ago
Other questions:
  • Which passage form the passage best contributes to elisa impatient tone
    8·1 answer
  • Can yall please take these points.
    11·2 answers
  • Is the percentage of the original sample that successfully completed a survey.
    10·1 answer
  • Which of the following types does the Java programming language support?
    9·2 answers
  • we studied FIFO, Priority, Round Robin (RR), and Weighted Fair Queueing (WFQ) packet scheduling disciplines. Which of these queu
    12·1 answer
  • 10010010 + 01100010 =
    11·1 answer
  • A web application that is designed as a single piece of software with multiple features that are fully integrated into the main
    9·1 answer
  • If a user inserts a piece of clip art over some text but does not want the art to block the text, the user should select
    14·2 answers
  • Accessing disk is much slower than accessing memory. As a result, many file systems have been designed with various optimization
    7·1 answer
  • Logistic Regression is a type of __________ problem.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!