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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started