Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: This assignment will give you the opportunity to use input and output functionality inside java. When using input and output functions, you will also

Objectives: This assignment will give you the opportunity to use input and output functionality inside java. When using input and output functions, you will also need to have knowledge of exceptions and loops. Therefore, by completing this assignment, students will have learned.
Importing values from a text file
Using for and while loops
Exporting data to a text file
Using Exceptions (try-catch)
Task Description:
You have been hired to process and clean some data for a research group. They would like the program you develop to be a menu-controlled console application with a menu option for loading an input file and another menu option for processing and cleaning the data in the input file. The user should not be able to process a file if an input file has not been loaded.
The load input file menu option should take user input to load the input file and determine the name of the output file. The output file is named after the input file by appending "_cleaned" to the file name, e.g., Input file: "input.txt" Output file:
"input_cleaned.txt"
The process file menu option will process the contents of the input file and write only the valid entries to the "cleaned" output file.
The contents of the input file are a list of entries in the following format:
0dots255
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions