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
KatRina [158]
3 years ago
12

Analyze the following code.

Computers and Technology
1 answer:
erastova [34]3 years ago
4 0

Answer:

D. The program compiles and runs fine

Explanation:

The program is checking if d is < 10 and adding the sum of d.

in the loop its incrementing d by 0.1

running the code and displaying d and sum give the following

0.1 0

0.2 0.1

0.3 0.4

0.4 1.1

0.5 2.6

0.6 5.7

0.7 12

0.8 24.7

0.9 50.2

1 101.3

1.1 203.6

1.2 408.3

1.3 817.8

1.4 1636.9

1.5 3275.2

1.6 6551.9

1.7 13105.4

1.8 26212.5

1.9 52426.8

2 104855.5

2.1 209713

2.2 419428.1

2.3 838858.4

2.4 1677719.1

2.5 3355440.6

2.6 6710883.7

2.7 13421770

2.8 26843542.7

2.9 53687088.2

3 107374179.3

3.1 214748361.6

3.2 429496726.3

3.3 858993455.8

3.4 1717986914.9

3.5 3435973833.2

3.6 6871947669.9

3.7 13743895343.4

3.8 27487790690.5

3.9 54975581384.8

4 109951162773.5

4.1 219902325551

4.2 439804651106.1

4.3 879609302216.4

4.4 1759218604437.1

4.5 3518437208878.6

4.6 7036874417761.7

4.7 14073748835528

4.8 28147497671060.7

4.9 56294995342126.2

5 112589990684257

5.1 225179981368520

5.2 450359962737044

5.3 900719925474094

5.4 1.80143985094819E+15

5.5 3.60287970189639E+15

5.6 7.20575940379279E+15

5.7 1.44115188075856E+16

5.8 2.88230376151712E+16

5.9 5.76460752303424E+16

5.99999999999999 1.15292150460685E+17

6.09999999999999 2.30584300921369E+17

6.19999999999999 4.61168601842739E+17

6.29999999999999 9.22337203685478E+17

6.39999999999999 1.84467440737096E+18

6.49999999999999 3.68934881474191E+18

6.59999999999999 7.37869762948382E+18

6.69999999999999 1.47573952589676E+19

6.79999999999999 2.95147905179353E+19

6.89999999999999 5.90295810358706E+19

6.99999999999999 1.18059162071741E+20

7.09999999999999 2.36118324143482E+20

7.19999999999999 4.72236648286965E+20

7.29999999999999 9.44473296573929E+20

7.39999999999999 1.88894659314786E+21

7.49999999999999 3.77789318629572E+21

7.59999999999999 7.55578637259143E+21

7.69999999999999 1.51115727451829E+22

7.79999999999999 3.02231454903657E+22

7.89999999999999 6.04462909807315E+22

7.99999999999999 1.20892581961463E+23

8.09999999999999 2.41785163922926E+23

8.19999999999999 4.83570327845852E+23

8.29999999999999 9.67140655691703E+23

8.39999999999999 1.93428131138341E+24

8.49999999999999 3.86856262276681E+24

8.59999999999999 7.73712524553363E+24

8.69999999999999 1.54742504910673E+25

8.79999999999998 3.09485009821345E+25

8.89999999999998 6.1897001964269E+25

8.99999999999998 1.23794003928538E+26

9.09999999999998 2.47588007857076E+26

9.19999999999998 4.95176015714152E+26

9.29999999999998 9.90352031428304E+26

9.39999999999998 1.98070406285661E+27

9.49999999999998 3.96140812571322E+27

9.59999999999998 7.92281625142643E+27

9.69999999999998 1.58456325028529E+28

9.79999999999998 3.16912650057057E+28

9.89999999999998 6.33825300114115E+28

9.99999999999998 1.26765060022823E+29

10.1 2.53530120045646E+29

You might be interested in
Given integer variables totalTickets, vipTickets, and sessionNum, which line of code correctly calls the following function? voi
alekssr [168]

Given integer variables <em>'totalTickets, vipTickets, and sessionNum'</em>, the line of code given in option C correctly calls the following function: "<em>void FinalTally(int* totalAttendees, int* vipAttendees, int numSessions);</em>"

The correct function call with the variables named <em>'totalTickets, vipTickets, and sessionNum</em>' is as follows:

<em>FinalTally(&totalTickets, &vipTickets, sessionNum); </em>

A function call refers to an expression that passes control and arguments (if there are any) to the specified function and has the syntax as <em>FunctionName (argumentList</em>) where <em>FunctionName is the name of the function to be called and argumentList indicates the list of arguments (separated by commas) to be passed to the calling function</em>.

"

<u><em>Correct question is as follows:</em></u>

Given integer variables totalTickets, vipTickets, and sessionNum, which line of code correctly calls the following function? void FinalTally(int* totalAttendees, int* vipAttendees, int numSessions);

a. FinalTally(totalTickets, vipTickets, &amp;session Num);

b. FinalTally(&amp;totalTickets, &amp;vipTickets, session Num);

c. FinalTally(&totalTickets, &vipTickets, sessionNum);

d. FinalTally(&amp;totalTickets, &amp;vipTickets, &amp;session Num);

"

You can leran more about Function Call at

brainly.com/question/28566783

#SPJ4

3 0
1 year ago
These are questions from my Computer/Customer Support Class
vladimir2022 [97]
Hey

1. Workers 

2. im not sure about this on

3. The

Hoped I Helped
5 0
3 years ago
Quick question;
insens350 [35]

A company could benefit from data mining finding valuables in said data. They could use it to earn bitcoin which can be cashed out. Also they can find hidden items unreleased in files.

hope this helps! :D

8 0
3 years ago
When will you know if you like someone
Soloha48 [4]

Honestly you just know but if you keep looking at them or always thinking of them and stuff like that

7 0
3 years ago
Plagiarism is considered
skad [1K]

Answer:

cheating

Explanation:

6 0
3 years ago
Other questions:
  • Plz help me! No guessing plz!
    13·1 answer
  • 4. A computer architect boasted that they were able to design a computer in which every instruction occupied exactly thirty-two
    8·1 answer
  • All of the following are methods to improve the communication of your key messages EXCEPT:
    8·2 answers
  • Instructions (software) that allow a computer (hardware) to be used are written using specific symbols, letters and numbers know
    7·1 answer
  • After Alexandra installed new software, she set it up to perform in a certain way. She is _____. changing the peripherals linkin
    10·1 answer
  • How can goal setting help with academic performance?
    15·1 answer
  • Weegee confused. <br><br> Why is weegee.org kitty website...?
    8·2 answers
  • What aspect should you consider before adding pictures to a document? You should structure the first before you search for a rel
    14·1 answer
  • How communication skills are different from self management skills
    10·2 answers
  • you are tasked with managing multiple servers. you want to manage them all from one server manager interface so you don't have t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!