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
topjm [15]
3 years ago
7

Write the code to input a number and print the square root. Use the absolute value function to make sure that if the user enters

a negative number, the program does not crash.
Advanced Placement (AP)
1 answer:
lukranit [14]3 years ago
6 0

Answer:

Explanation:

Language?

I'm assuming this is AP CS A so I'll do it in java.

import java.util.Scanner;

class Main {

public static void main(String[] args) {

   Scanner input = new Scanner(System.in);

   System.out.print("Number: ");

   int sqrtNumber = Math.abs(input.nextInt());

   double printableNumber = Math.sqrt(sqrtNumber);

   System.out.println(printableNumber);

 }

}

You might be interested in
Lakes and rivers constitute __________. A) 87% of liquid surface freshwater B) 87% of the salt and freshwater C) a majority of E
lakkis [162]

Answer:

A i took the quiz and got a 100%

Explanation:

7 0
2 years ago
Financial aid consists of _______ and student loans.
lesya692 [45]
Sure, let me try to help you on this one.

There are many things that might fall under the right answer; however, the most logical one would be grant. 

Grants and loans are the most common types of financial aid a student can possibly get, former being a privilege given to students who excel in studies or have proven themselves as worthy candidates for whatever college they are applying to.
7 0
3 years ago
Based on the map, which of the following explains the similarities of the world regions where at least 51 percent of women work
andreyandreev [35.5K]

Answer:

These regions are composed of less-developed countries with large rural populations.

Explanation:

The areas shown on the map with at least 51 percent of women working in agriculture are all less-developed countries that have large rural populations.

5 0
3 years ago
Read 2 more answers
Which ICS functional area monitors costs related to the incident and provides accounting, procurement, time recording, and cost
Mamont248 [21]

Finance and Administration

The Finance and Administration Section Chief of the Incident Command System is split into four units:

1. Time Unit

Responsibility: Time recording of personnel

2. Procurement Unit

Responsibility: Contracts of Equipment rental supply

3. Compensation/ Claims Unit

Responsibility: Claims, Records, Compensation of workers

4. Cost Unit

Responsibility: Estimates collections. Monitor incident cost


6 0
3 years ago
What does a relatively small standard deviation tell you about a set of data?
zaharov [31]
Answer: The data set is centered around the mean.
6 0
3 years ago
Other questions:
  •  (blank)refers to the idea that the president has a personal link to the public.Presidential charismaPersonal presidencyPresiden
    15·1 answer
  • What do you think the driving force behind the resource depletion really is ?
    8·1 answer
  • When does a student need to file the FAFSA?
    5·1 answer
  • Provide some examples of items that would be adjusted directly against equity, rather than being included as part of profit or l
    9·1 answer
  • Which factor will likely have the greatest influence on Japan’s demographic changes between now and 2050?
    5·1 answer
  • HELP WITH MY DRIVERS ED PLEASEEE!
    13·2 answers
  • For a person who had a lot of work experience, a ______ resume would be best.
    14·2 answers
  • The period of a certain wave is 20 seconds. What is the frequency of this wave?
    15·2 answers
  • Which of the following demonstrates intrinsic motivation?
    9·2 answers
  • Your study guide should include important dates of events even if you think you will not be tested on them. Please select the be
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!