Hello, can someone help me with this assignment? I am trying to do it on Python language: Develop a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.readlines() method. The input file contains a list of alphabetical, ten-letter strings, each on a separate line. Your program should output all strings from the list that are within that range (inclusive of the bounds). Ex: If the input is: input1.txt                                                                                      ammoniated                                                                                    millennium and the contents of input1.txt are: aspiration                                                                                               classified                                                                                            federation                                                                                              graduation                                                                                          millennium                                                                                      philosophy                                                                                             quadratics                                                                                            transcript                                                                                                wilderness                                                                                            zoologists the output is: aspiration                                                                                              classified                                                                                            federation                                                                                             graduation                                                                                      millennium

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Hello, can someone help me with this assignment? I am trying to do it on Python language:

Develop a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.readlines() method. The input file contains a list of alphabetical, ten-letter strings, each on a separate line. Your program should output all strings from the list that are within that range (inclusive of the bounds).

Ex: If the input is:

input1.txt                                                                                      ammoniated                                                                                    millennium

and the contents of input1.txt are:

aspiration                                                                                               classified                                                                                            federation                                                                                              graduation                                                                                          millennium                                                                                      philosophy                                                                                             quadratics                                                                                            transcript                                                                                                wilderness                                                                                            zoologists

the output is:

aspiration                                                                                              classified                                                                                            federation                                                                                             graduation                                                                                      millennium

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Stack operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT