Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a new program (hw6-prl) meeting at least the following minimum requirements: Opens the text version of this file (hw6-Spring2017.txt) and searches thru the file

image text in transcribed
Write a new program (hw6-prl) meeting at least the following minimum requirements: Opens the text version of this file (hw6-Spring2017.txt) and searches thru the file for the first occurrence of each of the 26 uppercase characters of the alphabet (A-Z), then each the 10 digits (0-9), and finally each of the 26 lowercase characters of the alphabet (a-z). As it finds each of these characters it should also record its position in the file (assume the first character in the file is in position 1). If the character or digit is not found in the file then it should be recorded as "Not Found" Display (5 per line) each of the alphanumeric characters (in the same order the search was done) immediately followed by its location in the file. Use exactly 10 columns to display each character/location pair as follows: character. 1 space, 6 digit location with no leading zeros, 2 spaces. For "Not Found" characters display location as NotFnd. Display (5 per line) each of the alphanumeric characters (in the order they were found in the file) immediately followed by its location in the file. Use exactly 10 columns to display each character/location pair as follows: character, 1 space. 6 digit location with no leading zeros, 2 spaces. "Not Found" characters should be displayed at the beginning of the list with location shown as NotFnd

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

c. Will leaders rotate periodically?

Answered: 1 week ago