Order for this Paper or Similar Assignment Writing Help

Click to fill the order details form in a few minute.

Posted: April 20th, 2022

Open book and notes assignment

Home>Computer Science homework help
urgent
fast
Assignment Rules:
Open book and notes assignment

This homework tests your knowledge of File Handling, use of String methods, and use of Sets.
Adhere to the naming conventions discussed in class for variable names, program name and function names
Use meaningful names for variables, functions etc
If there are two words in the variable use first word lowercase and first letter of second word upper case i.e., firstName or underscore between 2 words i.e first_name
Include appropriate comments in the code
Output should be displayed similar to as mentioned against each problem
Indent the lines of code appropriately
1. char_analysis.py (40 points)

Write a program that reads the file’s contents and determine the following:

The number of Uppercase letters in the file
The number of Lowercase letters in the file
The number of digits in the file
The number of whitespace characters in the file
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.

———–

Home>Computer Science Homework Assistance Urgent

fast

Assignment Guidelines:

Assignment with open book and notes

This homework assesses your knowledge of File Handling, String Methods, and Sets.

Follow the naming conventions discussed in class for variable, program, and function names.

For variables, functions, and so on, use meaningful names.

If there are two words in the variable, use lowercase first word and uppercase first letter of second word, i.e., firstName, or underscore between two words, i.e., first name.

Incorporate appropriate comments into the code.

Output should be displayed in the manner described for each problem.

Indent the lines of code as needed.

1. char analysis.py (Python script) (Forty points)

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

The number of letters in uppercase

Check Price Discount

Study Notes & Homework Samples: »

Why Choose our Custom Writing Services

We prioritize delivering top quality work sought by students.

Top Tutors

The team is composed solely of exceptionally skilled graduate writers, each possessing specialized knowledge in specific subject areas and extensive expertise in academic writing.

Discounted Pricing

Our writing services uphold the utmost quality standards while remaining budget-friendly for students. Our pricing is not only equitable but also competitive in comparison to other writing services available.

0% similarity Index

Guaranteed Plagiarism-Free Content: We assure you that every product you receive is entirely free from plagiarism. Prior to delivery, we meticulously scan each final draft to ensure its originality and authenticity for our valued customers.

How it works

When you decide to place an order with Dissertation Help, here is what happens:

Complete the Order Form

You will complete our order form, filling in all of the fields and giving us as much instructions detail as possible.

Assignment of Writer

We analyze your order and match it with a custom writer who has the unique qualifications for that subject, and he begins from scratch.

Order in Production and Delivered

You and your writer communicate directly during the process, and, once you receive the final draft, you either approve it or ask for revisions.

Giving us Feedback (and other options)

We want to know how your experience went. You can read other clients’ testimonials too. And among many options, you can choose a favorite writer.

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00