Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need only the past that says /* Your solution goes here */, no explanation needed and it has to be in C , many

I need only the past that says /*Your solution goes here*/, no explanation needed and it has to be in C, many thanks

4.10.1: Simon says

image text in transcribed

-------------------------------------------------------------------------------------------------------------------------------------

Same as above:

image text in transcribed

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. Ex: The following patterns yield a userScore of 4 simonPattern: RRGBRYYBGY userPattern: RRGBBRYBGY 1 #include 2 #include 4 int main(void) f 5 char simonPattern[50]; 6 char userPattern[50] 7 int userScore; int i; 10 userscore=0; 11 strcpy(simonPattern, "RRGBRYYBGY") 12 strcpy (userPattern, "RRGBBRYBGY"); 13 14 Your solution goes here 15 16 printf("userscore : %d ", userScore); 17 18 19 return

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions