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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:30, tinasidell1972
An endless cycle of creation and response on the internet is called
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, vane3152
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, valeriegarcia12
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, teamroper35
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
You know the right answer?
This problem has been solved! see the answer8.30 lab*: program: authoring assistant(1) prompt the...

Questions in other subjects: