Assignment Guidelines:
Open book and notes assignment

This homework checks your information of File Dealing with, use of String strategies, and use of Units.
Adhere to the naming conventions mentioned in school for variable names, program title and operate names
Use significant names for variables, capabilities and so on
If there are two phrases within the variable use first phrase lowercase and first letter of second phrase higher case i.e., firstName or underscore between 2 phrases i.e first_name
Embrace acceptable feedback within the code
Output needs to be displayed much like as talked about in opposition to every downside
Indent the traces of code appropriately
1. char_analysis.py (40 factors)

Write a program that reads the file’s contents and decide the next:

The variety of Uppercase letters within the file
The variety of Lowercase letters within the file
The variety of digits within the file
The variety of whitespace characters within the file
HINTS:

Outline fundamental():

Declare Native variables

Open file textual content.txt for studying. Use ‘textual content.txt’ file accessible below the Modules part in Canvas.

Use for loop to step by means of every character within the file.

Decide if the character is uppercase, lowercase, a digit, or area, and preserve a working whole of every.

Shut the file.

📝 Need Help With This Topic?

Get a custom-written paper by an expert in this subject. Plagiarism-free, on time, any citation style.

  • ✓ PhD & Masters qualified writers
  • ✓ Turnitin-safe β€” 0% similarity
  • ✓ Free revisions + money-back guarantee
Get My Paper Now

From $11/page · All academic levels

Show the totals of uppercase, lowercase, digits, areas.

Pattern Output:

Uppercase letters: 29
Lowercase letters: 1228
Digits: 30

Areas: 260

2. distinctive.py (30 factors)

Write a program that opens a specified textual content file (text2.txt) and shows a listing of all distinctive phrases discovered within the file.

HINTS:

Outline fundamental():

Declare Native variables

🌟 Writers Who Have Helped Students Like You

Our expert writers specialise in this subject and deliver original, well-researched papers.

S
Dr. Sarah M.★★★★★ 4.97 Β· 1,240 orders
Nursing & Healthcare Β· PhD Edinburgh
J
Prof. James K.★★★★★ 4.95 Β· 980 orders
Business & Law Β· MBA London

Open file text2.txt for studying. Use ‘text2.txt’ file accessible below the Modules part in Canvas.

Use ‘set’ technique to search out the distinctive phrases within the file and retailer every of them as a component of the set.

Shut the file.

Show all of the distinctive phrases from the set.

Pattern output:

These are the distinctive phrases within the textual content:
administration.
title
been
later,
canceled,
is
Jap,
delay
Eight
1,820
at
it
1867
official
world
and
firm,….

three. title.py (30)

Write a program that will get a string containing an individual’s first, center, and final names, and shows their first, center, and final initials. For instance, if the person enters Susan Smith Miller, this system ought to show S.S.M.

Outline fundamental():

Declare Native variables

🎉 100% Satisfaction Guaranteed β€” or Your Money Back

Join 12,400+ students who trust us with their academic success. Every order includes: free revisions within 30 days, plagiarism report, on-time delivery guarantee, and full confidentiality.

★★★★★

4.9/5 from 12,400+ reviews

Order & Get 25% Off

Immediate person to enter the total title

Use ‘break up’ technique to separate the total title

Use for loop to get first character of every title as an preliminary

Convert the primary character to higher case whether it is already not in higher case

Show output

Pattern output:

Enter your full title: Susan Smith Miller
S.S.M.

——-

Open book and notes assignment