Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer this question in python. thank you Write a program that first reads in the name of an input fle, followed by two strings

please answer this question in python. thank you
image text in transcribed
image text in transcribed
Write a program that first reads in the name of an input fle, followed by two strings representing the lower and upper bounds of a search range The file should be read using the file readlines 0 method. The input file contains a list of alphabetical, ten-letter strings, each on a separate line Your program should determine if the strings from the list ate within that range (inclusive of the bounds) and output the resulis Ex If the input is: inputi, txt ammoniated millennsum and the contents of input 1xt are. aspiration olassified federation graduation millennium philosophy quadratics transeript wilderness zoologiats the output is: aspiration - in range classified - in range federation - in range graduation - in range millennium - in range philosophy - not in range quadratics - not in range transcript - not in range wilderness - not in range zoologiats - not in range Notes: - End the output with a newine - All input files are hosted in the zyLab and file names can be directly referred to. input1.txt is available to download so that the contents of the file can be seen. - In the tests, the first word input always comes alphabetically before the second word input

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

1. Define and communicate the results you expect from each manager:

Answered: 1 week ago