Think Pair Share 1
- Due Sep 5, 2020 by 10am
- Points 1
- Submitting a file upload
- Available after Sep 4, 2020 at 10am
Think
Insert a new row just below the header in the table in your TPS Google Doc. Fill in the first two columns. Place your response to the following in the third column:
The code below prompts the user for the name of an item to purchase, then reads the name in. The prompt currently is displayed like this:
Please enter the name of the item you would like to purchase:>
Write down the corrected line of code to make the prompt appear like this:
Please enter the name of the item you would like to purchase:
>
Note that the ">" should appear on a new line with a space after it.
Here's the program.
#include <iostream>
using namespace std;
int main(){
string productName;
cout << "Please enter the name of the item you would like to purchase:>";
getline(cin, productName);
return 0;
}
Pair
If you are joining the class live (in person or over Zoom), pair up with someone when asked to do so—please use Discord or your preferred means of interacting with someone to share your answers (please see the announcement with details about Discord). Settle on an answer between to two or three of you and put that answer down in your "Pair" column.
Share
Regardless of whether or not you are attending live, one person from your pair group should add your answer to the "TPS class share" document in Canvas Collaborations.
Submit
Finally, submit your personal TPS Google doc to this assignment.
Rubric
Criteria | Ratings | ||
---|---|---|---|
You uploaded your copy of the TPS Google doc
|
|
||
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
|
|
||
|