Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

http://tschwarz.mscs.mu.edu/Classes/COSC1010/Laboratories/Laboratory7/countries.txt http://tschwarz.mscs.mu.edu/Classes/COSC1010/Laboratories/Laboratory7umbers.txt these are the 2 links for the question, this is for python, thank you Laboratory 7: Processing Files 1. Print out all lines

image text in transcribed

http://tschwarz.mscs.mu.edu/Classes/COSC1010/Laboratories/Laboratory7/countries.txt

http://tschwarz.mscs.mu.edu/Classes/COSC1010/Laboratories/Laboratory7umbers.txt

these are the 2 links for the question, this is for python, thank you

Laboratory 7: Processing Files 1. Print out all lines in "Alice in Wonderland" that a. contain both the letter y and the letter z. b. contain a word with "ing" in it. c. contain a word with more than 15 letters, but without counting punctuation marks and without hyphens. 2. Open up the Iris data file and a. calculate the average sepal length, sepal width, petal length, and petal width of all the flowers in the dataset for each of the three species b, find the maximum petal length for each of the three species. (Hint: To find a maximum. you need to store the previous best-seen value.) 3. Use the countries.txt file (from the Kaggle datasets) in order to find the two countries with the highest population density using a Python program. The easiest way to do this is to scan the file and maintain the two highest population densities seen so far as well as the country names. 4. Write a program that converts the numbers.txt file to one where the comma-separation is replaced by a blank space separation. The numbers are supposed to be neatly aligned with decimal points on top of decimal points. Laboratory 7: Processing Files 1. Print out all lines in "Alice in Wonderland" that a. contain both the letter y and the letter z. b. contain a word with "ing" in it. c. contain a word with more than 15 letters, but without counting punctuation marks and without hyphens. 2. Open up the Iris data file and a. calculate the average sepal length, sepal width, petal length, and petal width of all the flowers in the dataset for each of the three species b, find the maximum petal length for each of the three species. (Hint: To find a maximum. you need to store the previous best-seen value.) 3. Use the countries.txt file (from the Kaggle datasets) in order to find the two countries with the highest population density using a Python program. The easiest way to do this is to scan the file and maintain the two highest population densities seen so far as well as the country names. 4. Write a program that converts the numbers.txt file to one where the comma-separation is replaced by a blank space separation. The numbers are supposed to be neatly aligned with decimal points on top of decimal points

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago