Question: C LANGUAGE: ( if could also show steps on how to run with the txt file ) It's so common to hear people start sentences

C LANGUAGE: (if could also show steps on how to run with the txt file) It's so common to hear people start sentences with "I am"(as opposed to Ren Descartes, who is famous for ending a sentence like that). The Department of Sociology might be interested in a study of the qualities that
themselves ...
Write a program (3%) that:
Opens a file called MyQualities . txt for writing.
Repeatedly ...
@ Reads a sentence from the keyboard (using fgets).
Checks if the sentences starts with "I am "(using strstr)
@ If it does, then extracts the substring starting at the 5th character, i.e., the substring containing the quality the person believes they possess. (using strncpy).
Concatenates the substring onto a growing string containing all such qualities, with a comma separator (using st rncat - the growing string has a maximal length of 1024 characters).
Appends the substring to the MyQualities.txt file.
Stops looping when a string containing just a "." is entered (check using strcmp).
Outputs the grown string of qualities to the screen.
Opens the MyQualities.txt file for reading
Reads and echo the qualities from the file
Deletes the file
Here's what a sample run should look like (with the keyboard input shown in italics)...
C LANGUAGE: ( if could also show steps on how to

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 Accounting Questions!