Residence>Laptop Science homework Help
pressing
quick
Assignment Guidelines:
Open book and notes assignment

This homework checks your data of File Dealing with, use of String strategies, and use of Units.
Adhere to the naming conventions mentioned at school for variable names, program title and perform names
Use significant names for variables, capabilities and many others
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 ought to be displayed just like as talked about in opposition to every drawback
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 primary():

Declare Native variables

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

Use for loop to step via every character within the file.

Decide if the character is uppercase, lowercase, a digit, or area, and hold a operating complete of every.

Shut the file.

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

Pattern Output:

Uppercase letters: 29
Lowercase letters: 1228
Digits: 30

📝 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

Areas: 260

2. distinctive.py (30 factors)

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

HINTS:

Outline primary():

Declare Native variables

Open file text2.txt for studying. Use ‘text2.txt’ file obtainable beneath the Modules part in Canvas.

Use ‘set’ methodology to seek 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)

🌟 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

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 consumer enters Susan Smith Miller, this system ought to show S.S.M.

Outline primary():

Declare Native variables

Immediate consumer to enter the total title

Use ‘cut up’ methodology 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.

———–

Residence>Laptop Science Homework Help Pressing

🎉 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

quick

Assignment Pointers:

Assignment with open book and notes

This homework assesses your data of File Dealing with, String Strategies, and Units.

Comply with the naming conventions mentioned at school for variable, program, and perform names.

For variables, capabilities, and so on, use significant names.

If there are two phrases within the variable, use lowercase first phrase and uppercase first letter of second phrase, i.e., firstName, or underscore between two phrases, i.e., first title.

Incorporate acceptable feedback into the code.

Output ought to be displayed within the method described for every drawback.

Indent the traces of code as wanted.

1. char Assessment.py (Python script) (Forty factors)

Create a program that reads the contents of the file and determines the next:

The variety of letters in uppercase