Solved

For Each of the Following Situations,tell Which Type Loop (While,do-While,or

Question 25

Essay

For each of the following situations,tell which type loop (while,do-while,or for)would be best in that situation:
a)Reading a list of an unknown number of homework grades for a single student.
b)Summing a series such as 1 +1/2 +1/(22)+ 1/(23)+ … + 1/(28)
c)Testing a newly coded library function to see how it performs for different values of its arguments.
d)Reading in the number of days of vacation taken by an employee.

Correct Answer:

verifed

Verified

a)A while loop because the list of grade...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents