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 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
What should be used when performing vehicle maneuvers?
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
Sam needs to create a spreadsheet for his coworkers. they will need to follow a crossed a long road of data. sam would like to make his spreadsheet easy to read. sam should
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, 21.04.2021 16:50
question
Mathematics, 21.04.2021 16:50
question
Mathematics, 21.04.2021 16:50
question
Mathematics, 21.04.2021 16:50
Questions on the website: 13722362