Author Question: What is the value of average after the following code executes? double average;average = 1.0 + 2.0 + ... (Read 77 times)

AEWBW

  • Hero Member
  • *****
  • Posts: 579
What is the value of average after the following code executes?
double average;
average = 1.0 + 2.0 + 3.0 / 3.0;

3.0
4.0
2
2.0
◦ unknown



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question


 

Did you know?

Astigmatism is the most common vision problem. It may accompany nearsightedness or farsightedness. It is usually caused by an irregularly shaped cornea, but sometimes it is the result of an irregularly shaped lens. Either type can be corrected by eyeglasses, contact lenses, or refractive surgery.

Did you know?

Your chance of developing a kidney stone is 1 in 10. In recent years, approximately 3.7 million people in the United States were diagnosed with a kidney disease.

Did you know?

Alcohol acts as a diuretic. Eight ounces of water is needed to metabolize just 1 ounce of alcohol.

Did you know?

Nearly 31 million adults in America have a total cholesterol level that is more than 240 mg per dL.

Did you know?

Today, nearly 8 out of 10 pregnant women living with HIV (about 1.1 million), receive antiretrovirals.

For a complete list of videos, visit our video library