Think Pair Share 24
- Due Apr 16, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Apr 15, 2020 at 9am
Consider the following struct definitions.
struct TodoItem {
string description;
int priority;
bool done;
};
struct TodoList {
string name;
vector<TodoItem> items;
};
Now suppose that I have an vector of TodoList instances (say, a todo for academics, a todo for personal stuff, etc.) named todoLists. It's already populated with data. Write the C++ to display the description of the first todo item in the second todo list stored in todoLists.
Spend about 5 minutes on your own thinking through a solution without looking up any material and write it down either in an electronic document (Google Doc, Word, etc.) or on a piece of paper. After the 5 minutes is up, share what you have with your group members. If a revision is necessary, add it as a new section to your document or paper. Upload your document or an image of your paper to this Canvas assignment.
Please keep in mind that you will not be graded based on correctness but on effort. Trust me that it is more helpful in terms of knowledge retention for you to 1) not look at notes while doing the TPS and 2) only look at the solution after you have submitted.
After you have submitted, see this video for solutions Links to an external site..
Rubric
Criteria | Ratings | ||
---|---|---|---|
You uploaded a document or an image of a paper
|
|
||
You made a reasonable attempt at the "thinking" portion and this was clearly marked on your document
|
|
||
You made a reasonable attempt at the "sharing" portion and this was clearly marked on your document
|
|
||
|