A company wants you to input quarterly sales figures for sales employees. The loop that does this is ____.
A) Display "Enter the number of salespeople: "
Input numSalespeople
For qtrIndex = 1 To 4
Display empIndex + ", quarter " + qtrIndex
Input salesAmt
End For
B) Display "Enter the number of salespeople: "Input numSalespeopleFor empIndex = 1 To numSalespeopleDisplay empIndex + ", quarter " + qtrIndexInput salesAmtEnd For
C) Display "Enter the number of salespeople: "Input numSalespeopleFor empIndex = 1 To numSalespeopleFor qtrIndex = 1 To 4Display empIndex + ", quarter " + qtrIndexInput salesAmtEnd ForEnd For
D) Display "Enter the number of salespeople: "For empIndex = 1 To numSalespeopleFor qtrIndex = 1 To 4Display empIndex + ", quarter " + qtrIndexInput salesAmtEnd ForEnd For
Correct Answer:
Verified
Q40: What is the sentinel value in the
Q41: A(n) _ is one in which the
Q42: The most common posttest loop is the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents