Question: 1 3 . Create a Text File: Create a file named Gasoline with the following content: Gas prices stayed about the same the past two
Create a Text File: Create a file named Gasoline with the following content:
Gas prices stayed about the same the past two weeks, continuing an unusual week trend of steadily increasing prices followed by prices relaxing.
The average price for gas nationwide, including all grades and taxes, was about $ a gallon on Friday, according to a survey of stations released Sunday. That was up cents per gallon from Jan Prices have been holding steady since early January, when a gallon of gas cost about $
Create an Analysis Script: Write a script named TextAnalysis that processes the Gasoline file to:
Remove punctuation
Convert all characters to lowercase
Place each word on a new line
Remove blank lines
Sort words to group identical ones together
Remove duplicate words
List words by frequency of use
Execute and Verify: Save the script, make it executable, and run it Redirect the output to a file named ScriptResult.
Screenshot Submission: Take a screenshot of your TextAnalysis script and the ScriptResult file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
