LAB ASSIGNMENTS IMPORTANT: you need to complete the PDP thinking process for each program. Turn in the following: 1) two complete PDPS for both programs: text_validator and feedback_collector. 2) text_validator.py- until now, we have not validated text input. But some text inputs should follow a pattern. Write a short program that defines and calls a text validation function. Its purpose is to validate a full name or a book title (pick one). You don't have to use the mipo_ex model. Instead, this program has Main() and a function named Block(), plus a function call & print statement, in main(), to show the return value. Welcome to the name validation program. In your function definition, ask the user for input, then use .split() on the string entered, to turn it into a list of words. That way, you can use a loop to check each word, and correct capitalization and spacing. Then, you will add each corrected word back to a new string, and return. Please enter a full name for validation G correction. 8675309 Try again, and enter a full name: Try again, and enter a full name: shanice van der sanden The full name corrected is: Shanice van der Sanden Welcome to the title validation program. Please enter a title for validation & correction. Hint: Inside the loop, use conditional logic to determine the right fix for each word. Parts of names should stay in lower case, like van, der, de or di. In book titles, prepositions and articles are lower case, UNLESS they are Try again, and enter a title: the best of the beatles The corrected title is: The Best of the Beatles е the first word.
LAB ASSIGNMENTS IMPORTANT: you need to complete the PDP thinking process for each program. Turn in the following: 1) two complete PDPS for both programs: text_validator and feedback_collector. 2) text_validator.py- until now, we have not validated text input. But some text inputs should follow a pattern. Write a short program that defines and calls a text validation function. Its purpose is to validate a full name or a book title (pick one). You don't have to use the mipo_ex model. Instead, this program has Main() and a function named Block(), plus a function call & print statement, in main(), to show the return value. Welcome to the name validation program. In your function definition, ask the user for input, then use .split() on the string entered, to turn it into a list of words. That way, you can use a loop to check each word, and correct capitalization and spacing. Then, you will add each corrected word back to a new string, and return. Please enter a full name for validation G correction. 8675309 Try again, and enter a full name: Try again, and enter a full name: shanice van der sanden The full name corrected is: Shanice van der Sanden Welcome to the title validation program. Please enter a title for validation & correction. Hint: Inside the loop, use conditional logic to determine the right fix for each word. Parts of names should stay in lower case, like van, der, de or di. In book titles, prepositions and articles are lower case, UNLESS they are Try again, and enter a title: the best of the beatles The corrected title is: The Best of the Beatles е the first word.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 1TF
Related questions
Question
python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr