This topic contains a solution. Click here to go to the answer

Author Question: Since you cannot take the square root of a negative number, you might use which of the following ... (Read 43 times)

sdfghj

  • Hero Member
  • *****
  • Posts: 552

Question 1

Of the following types, which one cannot store a numeric value?
◦ int
◦ byte
◦ float
◦ char
◦ all of these can store numeric values

Question 2

Since you cannot take the square root of a negative number, you might use which of the following instructions to find the square root of the variable x?
◦ Math.sqrt(x*x);
◦ Math.sqrt((int) x);
◦ Math.sqrt(Math.abs(x));
◦ Math.abs(Math.sqrt(x));
◦ Math.sqrt(-x);


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by sdfghj on Aug 30, 2020

moormoney

  • Sr. Member
  • ****
  • Posts: 326
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 50% of students answer this correctly




sdfghj

  • Member
  • Posts: 552
Reply 2 on: Aug 30, 2020
YES! Correct, THANKS for helping me on my review


lindahyatt42

  • Member
  • Posts: 322
Reply 3 on: Yesterday
Gracias!

 

Did you know?

No drugs are available to relieve parathyroid disease. Parathyroid disease is caused by a parathyroid tumor, and it needs to be removed by surgery.

Did you know?

A recent study has found that following a diet rich in berries may slow down the aging process of the brain. This diet apparently helps to keep dopamine levels much higher than are seen in normal individuals who do not eat berries as a regular part of their diet as they enter their later years.

Did you know?

In the United States, congenital cytomegalovirus causes one child to become disabled almost every hour. CMV is the leading preventable viral cause of development disability in newborns. These disabilities include hearing or vision loss, and cerebral palsy.

Did you know?

Signs and symptoms of a drug overdose include losing consciousness, fever or sweating, breathing problems, abnormal pulse, and changes in skin color.

Did you know?

The Romans did not use numerals to indicate fractions but instead used words to indicate parts of a whole.

For a complete list of videos, visit our video library