# Classwork 6

## Logistics

• Due: Tuesday, May 18th no later than 1:35pm.
• Submission instructions: push a commit with the tag classwork6 to your git repository.
• Deadline reminder: after the deadline passes, you cannot earn any points for this assignment. If the deadline is approaching, submit what you have in order to earn partial credit.

## Learning outcomes

• Review anything you missed on Quiz 1.

## Assignment

Create a file called classwork6.txt in your classwork/classwork6 directory. Inside that file, for every question you missed on Quiz 1, write a short explanation of the correct answer.

For example, if you missed question 19 because you answered 0, you might write:

Question 19:
How many times will the block of code in this do while loop run?

int flag = 0;

do {

// block of code

} while (flag == 1);

I answered this question as 0, since the condition flag == 1 is never true.
But in a do-while loop, the body of the loop always runs once before the condition is checked.


• 1 point - there is a classwork6.txt file in your classwork/classwork6 directory.
• Note: you will not earn any points if your work is not committed and pushed to Github with the tag classwork6.