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
Amy opens a new checking account and deposits $20,000 in cash at Metropolitan Bank. The
mestny [16]

Answer:

i need help w this one to i’m doin it now

Explanation:

5 0
3 years ago
EXTRA POINTS!!!
ad-work [718]

The concept of continuity relates to historical developments and processes because historians can link the happenings in the past to recent occurrences.

  • The concept of continuity simply explains the continuation of a cycle and it shows the connection that exists between historical events.

  • Changes take place at different times which are then linked forward and backward in time. Continuity refers to the continuance of themes.

  • The concept of continuity is vital as historians are able to link what has occurred earlier to the recent things that are happening. For example, Islam had an influence on African culture and its development.

In conclusion, continuity is important to historians.

Read related link on:

brainly.com/question/15498027

6 0
1 year ago
What are the benefits and challenges of a diverse society?
melamori03 [73]
A diverse society has many different experiences and cultures. Many good ideas can become of a diverse society in order to bring about positive change and new opportunities for an increasingly different community. Diversity can also have challenges. Many cultures have ideals and beliefs that can prevent successful communication between the different parties.
5 0
2 years ago
What does axis 1 in psychological disorders classify
Papessa [141]
It consist of all clinical disorders and mental illnesses with the irregularity of mental slowness in intellectual understanding and awareness, emotional development etc and personality disorders.
4 0
3 years ago
Read 2 more answers
If you don't have a preference for a question on a college search
N76 [4]

Answer:

ok

Explanation:

what does this even mean

4 0
2 years ago
Other questions:
  • How is needbased aid determined?
    6·2 answers
  • Why are supply chain checks done on chocolate companies?
    8·1 answer
  • Historians and first-year college students did significantly better at evaluating online information than the middle and high sc
    6·2 answers
  • How do we end crowding in women's homeless shelters
    9·1 answer
  • Using scientific terms. How plants turn sunlight into energy? Make sure to refer to a chemical equaltion photosynthesis discussi
    14·1 answer
  • A. Describe the following models of urban land use in North America:
    14·2 answers
  • Identify and explain ONE way in which industrialization in the period circa 1750–1900 can be considered an economic turning poin
    10·1 answer
  • Reports produced by the United Nations are considered
    13·1 answer
  • Al Systems Sem 1
    6·1 answer
  • According to Hume, what are the prospects for a scientific understanding of
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!