Question: Write a program to: ( a ) Read in a line of text entered by the user from the keyboard. The user may type in
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 onerightaftertheother. If the first two commas in the line of text occur onerightaftertheother, 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
