Topics: Methods, Selection statements, Nested Loops, & processing strings. You a
ID: 3545695 • Letter: T
Question
Topics: Methods, Selection statements, Nested Loops, & processing strings.
You are going to write a program that processes the contents of a data file. This program will read the contents of an input file token by token (where a token is a series of either letters or digits) separated by a single blank space. You program must count the number of words (all letters), integers, and floating point numbers in the file. For this program, the main method is responsible for prompting the user for the name of the input file, and creating a file reader to access the file. Your program must perform error checking via a try/catch block. If the file name is not valid, you should prompt the user repeatedly until a valid file name is input. As each token is read you will invoke 3 methods that determine what type of value the token is:
1. public bookean isWord(String token)
Explanation / Answer
Deadline for this ?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.