Question: Hello there, please help me code this C lab on my terminal and push it to my GitHub Requirements You will develop the C code

Hello there, please help me code this C lab on my terminal and push it to my GitHub

Requirements

You will develop the C code and a Makefile which builds one executable called lab02 (case sentitive) for the parts described below

You will use the grade script to test your results

Given

You must clone my https://github.com/phpeterson-usf/autograder and the https://github.com/cs221-s23/tests for this class into your home directory on the lab systems

The make program is included on the lab systems so you do not have to install it

Lecture material will cover necessary C concepts, as well as Makefiles and usage of the autograder.

Part 1

Count the occurrences of a single character in a string. Example output:

$ ./lab02 foobar o 2 $ ./lab02 foobar invalid arguments 

Part 2

Count the occurrences of an N-character string in another string. Example output:

$ ./lab02 abbabb bb 2 $ ./lab02 abbabb bc 0 

You may use the C library function strstr() if you wish. char *strstr(char *a, char *b)returns a pointer to the first occurrence of b if b occurs in a, or NULL if b does not occur in a

Rubric

Points earned from autograder test cases

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!