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
sleet_krkn [62]
3 years ago
11

1. Write code that prints the square root of the value in the variable num rounded to 4 decimal places. Assume that num already

has a value and that the math module has been imported.
Computers and Technology
1 answer:
lilavasa [31]3 years ago
8 0

Answer:

System.out.printf("The square root is %.4f\n",sqrt);

Explanation:

In Java programming language using the print format method of System.out One can specify the the number of decimal places. In this case to 4 decimal places.

See a complete code snippet below

public class num1 {

   public static void main(String[] args) {

       double num =5;

       double sqrt = Math.sqrt(5);

       System.out.printf("The square root is $%.4f\n",sqrt);

   }

}

You might be interested in
How do i delete a question ?
seraphim [82]

i think we can't do that

7 0
3 years ago
The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively. The postorder traversal o
garik1379 [7]

Answer:

Option (A)

Explanation:

In the post order traversal, we always print left subtree, then right subtree and then the root of the tree. In preorder traversal, First the root is printed, then, left subtree and at last, right subtree, so, the first element in preorder is the root of the tree and we can find elements of left sub tree from in order as all the elements written left to the root will of left subtree and similarly the right one. This is how repeating it will give the post order traversal.

3 0
4 years ago
Read 2 more answers
How would you create a loop that never ends?
34kurt

Answer:

the answer is d use the forever block

Explanation:

I took the test and I got it right but sometimes it is different for others

8 0
3 years ago
List and describe at least two (2) very specific advantages of the CIF approach for enterprise-scale data warehousing for this c
tresset_1 [31]

Answer:

di ko po alam pa help po

Explanation:

pllssss

7 0
3 years ago
The radix sort
Rashid [163]

Answer:  A) Treats array entries as if they were strings that have same length.

Explanation:

Radix sort are used as sorting algorithm for integers. This algorithm used as general purpose for sorting the integer data. Basically, it is non comparative sorting integer that sort the given data by making the individual group.

It treats input value as strings of the digit, that is why it is defined as string sorting algorithm.

Therefore, Option (A) is correct.

5 0
4 years ago
Other questions:
  • Given a string variable named sentence that has been initialized , write an expression whose value is the the very last characte
    14·1 answer
  • Search engines are used to find a specific entry in a database.<br><br> True or false?
    9·2 answers
  • What is the purpose of the overload keyword in the ip nat inside source list 1 pool nat_pool overload command?
    8·1 answer
  • When you receive five job offers what does it mean
    9·1 answer
  • Ano kaya ang nararamdaman mo at mangyari sayo kung tatlong araw ka nang hindi kumakain​
    6·1 answer
  • Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in
    7·1 answer
  • Write a method named printOdd() that accepts an integer array as argument and print all the odd numbers in the array. You may as
    8·1 answer
  • Which of the following are common data types? Check all that apply.
    6·1 answer
  • Write a basic notation for
    8·1 answer
  • a company is using aws fargate to run a batch job whenever an object is uploaded to an amazon s3 bucket. the minimum ecs task co
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!