Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Write a shell
all vowels from the filenames. For example, apple.txt should be renamed
ppl.txt. If the resulting filename is an empty string, then the file should not be
renamed.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
Knowledge Booster
Similar questions
- Write a Python program sentences.py that prompts for multiple sentences. The program should write the sentences without punctuations with the words in reversed order and in uppercase in a new file named sentences.txt. All words must be separated by single space. Example 1 prompt (input:) Enter a sentence: What's your address?Enter a sentence: 964 S. Monroe Ave. Naugatuck, CT 06770Enter a sentence: quit (output:) (In a new file) ADDRESS YOUR WHATS 06770 CT NAUGATUCK AVE MONROE S 964arrow_forwardCreate a program that reads a text file containing a 15 x 15 grid which represents a block of human cells and find the number of blobs of cancerous cells in the grid. The cells are depicted with a plus sign + if they are healthy, and a minus sign - if they are cancerous. Use the Flood Fill algorithm to determine the number of blobs. The program must be in Java language.arrow_forwardSolve it in different wayarrow_forward
- A file words.txt contains a large number of English Language words, one per record. Write a program that uses this file to implement a simple word checker. First, read all the words into a collection. Then, using this collection find the average length of all the words and write this number to the console.Finally, using a text file that contains written English paragraphs, the program should examine each word of each line and output to the console all the words that are not in the collection as potentially misspelled words. Write to the console how many words in this text file are above the average length of the dictionary words computed above.arrow_forwardUnix-based operating systems usually include a tool named tail. It displays the last 10 lines of a file whose name is provided as a command line argument. Write a Java program that provides the same behavior i.e. the user can specify how many lines to print from the terminal. Display an appropriate error message if the file requested by the user does not exist, or if the command line argument is omitted. Note: Make sure to display the last n lines of a file whose name is provided as a command line argument. You might need to pass a file as an argument, therefore make sure to have access to a sample file, the contents of which you want to print out.arrow_forwardWrite a program that first reads in the name of an input file and then reads the file using the csv.reader() method. The file contains a list of words separated by commas. Your program should output the words and their frequencies (the number of times each word appears in the file) without any duplicates. Ex: If the input is: inputl.csv and the contents of input1.csv are: hello, cat,man, hey, dog, boy, Hello, man, cat,woman, dog, Cat, hey, boy the output is: hello 1 cat 2 man 2 hey 2 dog 2 boy 2 Hello 1 woman 1 Cat 1 Note: There is a newline at the end of the output, and input1.csv is available to download. 339092.2126252.ax3zav7arrow_forward
- Write a Python program that reads each line of an input file called data.txt that consists of a keyword followed by a sequence of numbers separated by commas. If the keyword is UP, the numbers are sorted in increasing order, if the key word is DOWN; the numbers are sorted in decreasing order. The sorted sequence of numbers is saved in sorted.txt. For example, if the data.txt contains UP 25 35 30 40 30 DOWN 20 30 25 25 DOWN 35 45 40 15 16 18 The file sorted.txt will contain 25 30 30 35 40 30 25 25 20 45 40 35 18 16 15arrow_forwardWrite a program called asyncFileCount.js that prints the number of files with a given extension in a given directory. The first argument will be the path to the directory we want to filter on (e.g. /path/to/dir/') and a file extension to filter by as the second argument. For example, if you get '.txt' as the second argument then you will need to filter the list to only files that end with .txt Below are some example runs: An example run would be: node asyncFileCount.js . .js Another example run would be: node asyncFileCount.js /Users/jalirani/Desktop .docxarrow_forwardWrite a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written to a file. Each line of the input file will contain the student name (a single String with no spaces), the number of semester hours earned (an integer), the total quality points earned (a double). The following shows part of a typical data file: Smith 27 83.7 Jones 21 28.35 Walker 96 182.4 Doe 60 150 The program should compute the GPA (grade point or quality point average) for each student (the total quality points divided by the number of semester hours) then write the student information to the output file if that student should be put on academic warning. A student will be on warning if he/she has a GPA less than 1.5 for students with fewer than 30 semester hours credit, 1.75 for students with fewer than 60 semester hours credit, and 2.0 for all other students. The file Warning.java contains a skeleton of the…arrow_forward
- Write a program that prompts the user for an input file name, reads all words from the input file, and writes the words to the output file sentences.txt. Start a new line whenever a word ends in a period, question mark, or exclamation mark. Also do this if the period, question mark, or exclamation mark is followed by a quotation mark. Otherwise, separate words with spaces. Complete the following file: sentences.cpp 1 #include #include 3 #include 4 using namespace std; 6. int main() 7 { cout > input_file_name; 8 « endl; 9. 10 11 12 13 14 return 0; 15 } Submitarrow_forwardWrite a python program that read a text file 'count.txt', and should count and display the occurrence of word that start with alphabet B or b. The contents of 'count.txt' are given below: A big Boy playing with blue Ball.arrow_forwardIN PYTHON: Decrypting with ascii I have a file called 'dict.txt'. This file contains over 50,000 english words. One word from this file is used as a key (we do not know which one of course). Some have capital letters. I have another file called 'decrypt.txt' which is a file containing a string of numbers i must decrypt using a key found in the 'dict.txt'. This 'decrypt.txt' file message has length of 300. My question is, since i do not know which word (from the file with the 50,000+ words) is the key I must use to decrypt the other file, how do I write a function that: loops through all possible keys from 'dict.txt' to find the one that decrypts my file 'decrypt.txt' best? Somehow i must count how many 'words' are actual words to determine which key is best and then print my final decrypted message.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY