1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Zina [86]
3 years ago
10

SOLVE IN C:

Computers and Technology
1 answer:
RSB [31]3 years ago
4 0

Answer:

#include <stdio.h>

#include <string.h>

int main(void) {

  char simonPattern[50];

  char userPattern[50];

  int userScore;

  int i;

  userScore = 0;

  scanf("%s", simonPattern);

  scanf("%s", userPattern);

  for(i = 0;simonPattern[i]!='\0';i++){

         if(simonPattern[i]!=userPattern[i]){

            userScore=i;

            break;

     }

  }

  printf("userScore: %d\n", userScore);

  return 0;

}

Explanation:

  • Use a for loop that runs until it does not reach the end of simonPattern.
  • Check whether the current index of simonPattern and userPattern are not equal and then assign the value of i variable to the userScore variable and break out of the loop.
  • Finally display the user score.
You might be interested in
You can use _____ to track the state of each user in the application.
anastassius [24]

Answer:

session state

Explanation:

Session state in the context of NET is a method keep track of a user session. Session states allow a developer to store data about a user as he or she navigates through ASP.NET web pages.

3 0
3 years ago
Which is the most recent version of microsoft windows?
nignag [31]

Answer:

Windows 11, version 21H2.

Explanation:

this is the latest version as of October 2021.

I hope I helped you!

4 0
2 years ago
A simple system is to be designed to allow for the selling of old books. There are two different types of users: buyers and sell
Sidana [21]

Answer:

The  UML diagram and the story is shown on the first uploaded image

Explanation:

3 0
3 years ago
Which of the following reflects Moore's law? a. The doubling of computer chip performance per dollar every two years. b. A compa
Aleonysh [2.5K]

Answer:

c. A company's ability to acquire small amounts of capital for spending on innovative ideas every two years.

Explanation:

4 0
3 years ago
You are the network adminstrator for your company your network consists of two active directory domains research.westsim.local a
nexus9112 [7]

Answer:

We should configure the one of domain controller in the Houston to be the global catalog servers.

Explanation:

Configure the Domain controller:

1. Log in the MS Windows server host.

2. Then, click the Start Menu and goto the Tools, click on Manage Your Servers.  

  • on this wizard, you can choose the Adding Roles to your Servers.
  • in Server Role windows you can choose the Domain Controller.
  • Then, you can select the default values by the click on NEXT.
  • Then, continue accepts default values and click on the Next when the Report DNA Issues windows appears.
  • Then, select the Configure and install DNS for proceed to next window.
  • Then, continue to click on the Next when the Summary window will display then again click next.
  • After all, Active Directory Installation wizards are invoked.
5 0
3 years ago
Other questions:
  • Someone is retiring next year. What would be an appropriate amount of risk to take their investments?
    8·2 answers
  • Which of the following is an encryption tool that allows users to encrypt files and folders by simply right-clicking a given obj
    10·2 answers
  • Access to sensitive or restricted information is controlled describes which of the key communications and information systems pr
    8·1 answer
  • Naseer has inserted an image into his document but needs the image to appear on its own line.
    14·2 answers
  • You want to boot a linux system into singer user mode/ what options might you add to a linux kernel options list in a boot loade
    9·1 answer
  • When developing e-business systems, an in-house solution usually requires a ____ for a company that must adapt quickly in a dyna
    11·1 answer
  • analyze the ethical issues in the use of information technology in Multinational company (MNC) and support you answer with one e
    15·1 answer
  • Technology changes rapidly. Do you think the development of new technology will slow down at some point? At some point will cons
    12·1 answer
  • What are the trinity of the computer system
    15·1 answer
  • There are a wide variety of nonsampling errors that can occur during data collection including the first type, ________.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!