Question: The language is C Problem 25. (9 pnts) Write a program to: (a) Read in a line of text entered by the user from the

The language is C

Problem 25. (9 pnts) Write a program to: (a) Read in a line of text entered by the user from the keyboard. The user may type in tabs, blanks spaces, and any characters whatsoever followed by the Enter key. (b) If the line of text does not contain at least two commas, print the phrase "Data Entry Error" to the display. (c) Note that the two commas might occur one-right-after-the-other. If the first two commas in the line of text occur one-right-after-the-other, print the phrase "Missing Field" to the display. (d) If the first two commas in the line of text are separated by some text, print that text to the display. Note, the text between the first two commas may include tabs or blank spaces.

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!