Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Python program in IDLE, and save it as lab 10.py. Again, I recommend saving lab programs to a USB stick.) Your Python

image text in transcribed

Create a new Python program in IDLE, and save it as lab 10.py. Again, I recommend saving lab programs to a USB stick.) Your Python program will ask the user for their first name, then print the number of vowels and consonants in their first name. Then you will ask for their middle name, and print the number of vowels and consonants in their middle name. Finally, you will ask for their last name, and print the number of vowels and consonants in their last name. Here is a sample run of the program (user input is in red): Enter first name: Mary Vowels: 1 Consonants: 3 Enter middle name: Lou Vowels: 2 Consonants: 1 Enter last name: Henson Vowels: 2 Consonants: 4 Your program should have TWO separate functions: count_vowels, which takes a string as a parameter, and returns a count of how many vowels are in the string count_consonants, which takes a string as a parameter, and returns a count of how many consonants are in the string All user input and printing should be in the "main" part of your project, which is below those two functions. When you are finished, run your program in the Python shell and test it on the example above. If it looks exactly like the example when it runs, and if you have the two functions described above, have the TA or a lab assistant check you off

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

What are some ways that identities can be stolen?

Answered: 1 week ago