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, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
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
Mathematics, 30.10.2020 20:10
question
History, 30.10.2020 20:10
question
Health, 30.10.2020 20:10
question
English, 30.10.2020 20:10
question
Mathematics, 30.10.2020 20:10
question
Mathematics, 30.10.2020 20:10
Questions on the website: 13722360