Question: Solve the following problems using Python You are given a file called class _ scores.txt , where each line of the file contains a one
Solve the following problems using Python
You are given a file called classscores.txt where each line of the file contains a one word username
and a test score separated by spaces, like below:.
GWashington
JAdams
Write code that scans through the file, adds points to each test score, and outputs the usernames and
new test scores to a new file, scorestxt
You are given a file called grades.txt where each line of the file contains a one word student username
and three test scores separated by spaces, like below:.
GWashington
JAdams
Write code that scans through the file and determines how many students passed all three tests.
You are given a file called students.txt A typical line in the file looks like:
walter melon
melon@email.msmary.edu
There is a name, an email address, and a phone number, each separated by tabs Write a program that
reads through the file linebyline, and for each line, capitalizes the first letter of the first and last name
and adds the area code to the phone number. Your program should write this to a new file called
studentstxt Here is what the first line of the new file should look like:
Walter Melon
melon@email.msmary.edu
You are given a file called baseball.txt A typical line of the file starts like below.
Ichiro Suzuki SEA more stats
Each entry is separated by a tab, The first entry is the player's name and the second is their team.
Following that are statistics. Home runs are the seventh stat and stolen bases are the eleventh. Print
out all the players who have at least home runs and at least stolen bases.
Ask the user to enter a string of lowercase letters. Then use wordlist.txt to find all the words that can
be made from the letters of the user's string, taking into account frequencies. Hint: Creating a dictionary
of letter frequencies might help.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
