Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 1 1 Programming Challenge 6 Starting out With Java Tony Gladdis 4 th edition - MUST include following added specifications: - Name and submit

Chapter 11 Programming Challenge 6 Starting out With Java Tony Gladdis 4th edition - MUST include following added specifications: -Name and submit your two files FileArray and FileArrayTest.
-FileArray will have methods writeArray() and readArray().
-writeArray() will receive an array of String not an array of int.
-The String[] received should be of ints, e.g.,5,13, etc.
-writeArray() will convert those Strings to ints and write them.
-writeArray() must display a reasonable notice if a NumberFormatException is thrown.
-readArray () the array parameter will be an array of String not an array of int.
-The values of the String[] array returned will be numeric ints, e.g.,5,13, etc.
-readArray () will read ints from the file and convert them to Strings.
-readArray() must display a reasonable notice if a FileNotFoundException is thrown.
-readArray () must display a reasonable notice if a NumberFormatException is thrown.
-FileArrayTest will obtain the data file name for writeArray() from the user.
-FileArrayTest will obtain the data file name for readArray() from the user.
-FileArrayTest will: display the hard-coded data from its String array, ask for the output data file name, and call writeArray() with those values.
-FileArrayTest will then: LOOP through: 1) ask for the input data file name, 2) call readArray(), and 3) display the data that was read from that file, until the file name is stop.- Define exception NumberTooLow if an int value is less than 10.
-Have writeArray() display a reasonable notice if a NumberTooLow is thrown.
-Have readArray() display a reasonable notice if a NumberTooLow is thrown.

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

Students also viewed these Databases questions

Question

LOQ 15-10: What are somatic symptom and related disorders?

Answered: 1 week ago

Question

What is the preferred personality?

Answered: 1 week ago