Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using eclips java Create a text file from a source on the Internet (i.e. song lyrics, article, poem, etc.) Prompt the user for the filename,

using eclips java

image text in transcribed

Create a text file from a source on the Internet (i.e. song lyrics, article, poem, etc.) Prompt the user for the filename, then open the file. Remember to use/instead of \. For example: C: /data/myfile.txt or/javaData/song.txt Read the text file into a String or array of chars in main() Write the following methods to analyze the data read from the file: a. void DisplayString (string) b. void DisplayStringCharRemoved (string, char) c. void DisplayAllUpper(string) d. void DisplayAllLower(string) e. int CountLowerAlpha(string) f. int CountUpperAlpha(string) g. int CountAllAlpha(string) h. int CountNonAlpha(string) i. void DisplayReversestring(string) This will rely heavily on looking at each character in the string with CharAt(). See the sample code I've posted for ideas. Output: Please enter filename: song.txt Original File: 123XXyyxxYYxxyy File with 'x' removed: 123XXyyYYyy All Upper: XXYYXXYYXXYY All Lower: Xxyyxxyyxxyy Number of Alpha: 12 Number of Lower: 8 Number of Upper: 4 Number of Non-Alpha: 3 Reverse String: yyxxYYxxyyXX321

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_2

Step: 3

blur-text-image_step3

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

8. Get permission and cite the sources for graphics.

Answered: 1 week ago