Question: Homework2 (15pts) Part 1 Write a program that performs the tasks described in Part 1, Part 2, and Part 3 Enter a phrase: This is

 Homework2 (15pts) Part 1 Write a program that performs the tasks

Homework2 (15pts) Part 1 Write a program that performs the tasks described in Part 1, Part 2, and Part 3 Enter a phrase: This is not a sunny day Part 1 (5pts): Prompt the user for a phrase (string containing multiple words). Write code that performs the following actions on the phrase: 1. Display the number of characters in the phrase 1pt 2. If the number of characters in the phrase is less than 10 , display a message: "This is a 'The phrase entered is: This is not a sunny day short phrase" 2pts 3. Display the number of words in the phrase 2pts a. Use the string split method to split the string into a list word There are 23 characters in the string b. Use the leg function to get a count of the items in the list Part 2 Part 2 (5pts): Perform simple encryption on the phrase (string) entered for part 1. Replace each vowel in the phrase with a star (asterisk) and change all consonants from lower case to upper case Include the following: 1. A for loop that iterates over the phrase 2pts 2. If/else logic that determines how to replace vowels with asterisks and change consonants to upper case in the phrase 3pts 3. Display the updated phrase 1pt TH*S *S N*T * S*NNY D*Y Part 3 (5pts): Prompt the user for a list containing students scores. Display a bar graph of the scores Note: The user will enter a list at the prompt. Use the eval function to convert the user entry into a list Include the following: 1. Display the list 1pt 2. A for loop that iterates over the list 2pts 3. Create a bar using asterisks. The number of asterisks display will be equal to score being processed in the current loop iteration 2pts Homework submission details Important: If your program does not run, that's an automatic 50% deduction Write your program as a Python script. Use the following naming convention: firstinitial_lastname_homework2.py. Example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!