subject

Analyze the following code.

double sum = 0;
for (double d = 0; d < 10; sum += sum + d) {
d += 0.1;
}
a. the program has a syntax error because the adjustment statement is incorrect in the for loop.
b. the program has a syntax error because the control variable in the for loop cannot be of the double type.
c. the program compiles but does not stop because d would always be less than 10.
d. the program compiles and runs fine.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
You know the right answer?
Analyze the following code.

double sum = 0;
for (double d = 0; d < 10; sum...
Questions
question
Biology, 27.02.2020 18:36
question
Mathematics, 27.02.2020 18:36
Questions on the website: 13722363