Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Anyone know how to solve these using python? Write a complete Python program with prompts for the user for the main text file (checks that

image text in transcribed
Anyone know how to solve these using python?
Write a complete Python program with prompts for the user for the main text file (checks that it exists, and if not, output an error message and stop), for any possible flags (including none), and for any other input that this program may need from the user: split has an option of naming the smaller files head_tail list the first 10 lines (default) and the last 10 lines (default) in order of the given text file flag: -# output # lines instead of default lines Comment: If the file has less than 20 lines (default), output the entire file split split a text file into smaller pieces flags: -# put # lines of text into each output file (default=1000 lines) input: file file to be split (note extension and use it on split files) name file of newfiles (example: name-aa.ext, name-ab.ext, etc.) name may be blank, so the files are: xaa.ext, xab.ext, etc. Comment: Output the name of the file as it is being created wc count characters, lines, and words in a text file output order: lines words characters Write a program to count and output to the screen the numbers of times your initials (first and last names in either case) occur in the text file. Write a program to count and output the indicated characters from your text file to the screen using a suitable format. Character types to count: Upper-case letters Lower-case letters Digits Punctuation

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 Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

8. Providing support during instruction.

Answered: 1 week ago