The writer is very fast, professional and responded to the review request fast also. Thank you.
Assignment Rules:
Open book and notes assignment
1. char_analysis.py (40 points)
Write a program that reads the file’s contents and determine the following:
HINTS:
Define main():
Declare Local variables
Open file text.txt for reading. Use ‘text.txt’ file available under the Modules section in Canvas.
Use for loop to step through each character in the file.
Determine if the character is uppercase, lowercase, a digit, or space, and keep a running total of each.
Close the file.
Display the totals of uppercase, lowercase, digits, spaces.
Sample Output:
Uppercase letters: 29
Lowercase letters: 1228
Digits: 30
Spaces: 260
2. unique.py (30 points)
Write a program that opens a specified text file (text2.txt) and displays a list of all unique words found in the file.
HINTS:
Define main():
Declare Local variables
Open file text2.txt for reading. Use ‘text2.txt’ file available under the Modules section in Canvas.
Use ‘set’ method to find the unique words in the file and store each of them as an element of the set.
Close the file.
Display all the unique words from the set.
Sample output:
These are the unique words in the text:
management.
name
been
later,
canceled,
is
Eastern,
delay
Eight
1,820
at
it
1867
official
world
and
company,….
3. name.py (30)
Write a program that gets a string containing a person’s first, middle, and last names, and displays their first, middle, and last initials. For example, if the user enters Susan Smith Miller, the program should display S.S.M.
Define main():
Declare Local variables
Prompt user to enter the full name
Use ‘split’ method to split the full name
Use for loop to get first character of each name as an initial
Convert the first character to upper case if it is already not in upper case
Display output
Sample output:
Enter your full name: Susan Smith Miller
S.S.M.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more