subject

This problem has been solved! see the answer8.30 lab*: program: authoring assistant(1) prompt the user to enter a string of their choosing. store the text in a string. output the string. (1 pt)ex: enter a sample text: we'll continue our quest in space. there will be more shuttle flights and more shuttle crews and, yes; more volunteers, more civilians, more teachers in space. nothing ends here; our hopes and our journeys continue! you entered: we'll continue our quest in space. there will be more shuttle flights and more shuttle crews and, yes; more volunteers, more civilians, more teachers in space. nothing ends here; our hopes and our journeys continue! (2) implement a print_menu() function, which has a string as a parameter, outputs a menu of user options for analyzing/editing the string, and returns the user's entered menu option and the sample text string (which can be edited inside the print_menu() function). each option is represented by a single character. if an invalid character is entered, continue to prompt for a valid choice. hint: implement the quit menu option before implementing other options. call print_menu() in the main section of your code. continue to call print_menu() until the user enters q to quit. (3 pts)ex: menuc - number of non-whitespace charactersw - number of wordsf - fix capitalizationr - replace punctuations - shorten spacesq - quitchoose an option: (3) implement the get_num_of_non_ws_characters() function. get_num_of_non_ws_characters() has a string parameter and returns the number of characters in the string, excluding all whitespace. call get_num_of_non_ws_characters() in the print_menu() function. (4 pts)ex: number of non-whitespace characters: 181(4) implement the get_num_of_words() function. get_num_of_words() has a string parameter and returns the number of words in the string. hint: words end when a space is reached except for the last word in a sentence. call get_num_of_words() in the print_menu() function. (3 pts)ex: number of words: 35(5) implement the fix_capilization() function. fix_capilization() has a string parameter and returns an updated string, where lowercase letters at the beginning of sentences are replaced with uppercase letters. fix_capilization() also returns the number of letters that have been capitalized. call fix_capilization() in the print_menu() function, and then output the number of letters capitalized and the edited string. hint 1: look up and use python functions .islower() and .upper() to complete this task. hint 2: create an empty string and use string concatenation to make edits to the string. (3 pts)ex: number of letters capitalized: 3edited text: we'll continue our quest in space. there will be more shuttle flights and more shuttle crews and, yes; more volunteers, more civilians, more teachers in space. nothing ends here; our hopes and our journeys continue! (6) implement the replace_punctuation() function. replace_punctuation() has a string parameter and two keyword argument parameters exclamation_count and semicolon_count. replace_punctuation() updates the string by replacing each exclamation point character with a period and each semicolon (; ) character with a comma replace_punctuation() also counts the number of times each character is replaced and outputs those counts. lastly, replace_punctuation() returns the updated string. call replace_exclamation() in the print_menu() function, and then output the edited string. (3 pts)ex: punctuation replacedexclamation\_count: 1semicolon\_count: 2edited text: we'll continue our quest in space. there will be more shuttle flights and more shuttle crews and, yes, more volunteers, more civilians, more teachers in space. nothing ends here, our hopes and our journeys continue.(7) implement the shorten_space() function. shorten_space() has a string parameter and updates the string by replacing all sequences of 2 or more spaces with a single space. shorten_space() returns the string. call shorten_space() in the print_menu() function, and then output the edited string. hint: look up and use python function . (3 pt)ex: edited text: we'll continue our quest in space. there will be more shuttle flights and more shuttle crews and, yes, more volunteers, more civilians, more teachers in space. nothing ends here; our hopes and our journeys continue! labactivity8.30.1: lab*: program: authoring assistant

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
You know the right answer?
This problem has been solved! see the answer8.30 lab*: program: authoring assistant(1) prompt the...
Questions
question
Spanish, 18.05.2021 21:20
question
Arts, 18.05.2021 21:20
question
English, 18.05.2021 21:20