Answered step by step
Verified Expert Solution
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 trycatch
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 menucontrolled 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, eg Input file: "input.txt Output file:
"inputcleaned.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:
dots
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