int main() {
string simon_Pattern;
string user_Pattern;
int userScore;
int i;
user_Score = 0;
simon_Pattern = "RRGBRYYBGY";
user_Pattern = "RRGBBRYBGY";
for (i = 0; i <= simson_pattern.length; i++) {
if (simon_Pattern[i] == user_Pattern[i]) {
user_Score = user_Score + 1;
} else {
break;
}
}
cout << "userScore: " << user_Score << endl;
return 0;
}
Here it uses two string variable to store “simson’s pattern and user’s pattern”. Then a “for loop” is executed till the end of the string. Inside the for loop both the strings are compared character by character and when found the score is added. If not for loop is exited and finally the score is displayed.
The statement that correctly describes the difference between an IP address and a MAC address for a specific device is that the IP address can change, but the MAC address always stays the same.
For better understanding, let us explain what the IP address and a MAC address means
- IP address simply mean Internet protocol address
, it is a distinct string of numbers that is often separated by full stops that shows each computer using the Internet Protocol to link or communicate over a network.
- MAC address is simply regarded as a A distinct number also as it shows a device or computer that is linked or connected to the internet.
- One of the major difference between a MAC address and an IP address? is that the IP address gives the location of a device on the internet but the Mac address identifies the device connected to the internet.
from the above, we can therefore say that the answer The statement that correctly describes the difference between an IP address and a MAC address for a specific device is that the IP address can change, but the MAC address always stays the same, is correct
learn more about IP address and a MAC address from:
brainly.com/question/6839231
Take screenshots of other tweets and get a app that can put them together in 1 photo or use google slides
Answer:
Warning signs tell you can or can't do, and what you must do?