Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

book/UICC$109ReckingerFall2018/chapter/3/section/ 4: Equality and relational ope

ID: 3746298 • Letter: B

Question

book/UICC$109ReckingerFall2018/chapter/3/section/ 4: Equality and relational operators Expected h Fe CTIE 342 Equality and relational expressions. ACTIVITY Reset Complete the expression so that userPoints is assigned with O if userStreak is greater than 20 (second branch). Otherwise. userPoints is assigned with 10 (first branch) 4 int main) [ 5 int userStreak; 6 int userPoints; 8 userStreak e; 9 userPoints ; 10 11 cin >> userStreak; / Program wilt be tested with values: 15, 28, 25, 3e, 35. 12 13 if (user Points--@) { userPoints- 18: 16 else t 17 userPoints e; 18 19 2 cout

Explanation / Answer

#include using namespace std; int main() { int userStreak; int userPoints; userStreak = 0; userPoints = 0; cin >> userStreak; if(userStreak