Computers and Technology

SOLVE IN C:
"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore. Upon a mismatch, exit the loop using a break statement. Assume simonPattern and userPattern are always the same length. Ex: The following patterns yield a userScore of 4:simonPattern: RRGBRYYBGYuserPattern: RRGBBRYBGYplease use comments to explain each step!! #include #include int main(void) { char simonPattern[50]; char userPattern[50]; int userScore; int i; userScore = 0; scanf("%s", simonPattern); scanf("%s", userPattern);**YOUR ANSWER GOES HERE** printf("userScore: %d\n", userScore); return 0;}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 23.06.2019 05:00, sharkboy578
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
image
Computers and Technology, 24.06.2019 00:30, petergriffin6772
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
Do you know the correct answer?
SOLVE IN C:
"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (...

Questions in other subjects: