Write a Phyton program which counts the number of the five main vowels in a string and prints the result in table with headers and right-justified numbers. Test your program and process the long string, under "Real Data". See below. Use a Program Assignment Submission Sheet. (Do NOT include the "Problem Clarification" and "Real Data" sections or the long string itself, though, in the problem statement.) Problem Clarification: For instance, if the string itself is "Northeastern Africa", you would report: 3 A's, 2 E's, 1 1, 1 O. If the string were "Vacuum Cleaner", you would report: 2 A's, 2 E', 2 U's.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a Phyton program which counts the number of the five main vowels in a string and prints the result in table with headers and right-justified numbers. Test your program and process the long string, unde

 

Count Vowels
Write a Phyton program which counts the number of the five main vowels in a string and prints the result in table with
headers and right-justified numbers. Test your program and process the long string, under "Real Data". See below. Use a
Program Assignment Submission Sheet. (Do NOT include the "Problem Clarification" and "Real Data" sections or the
long string itself, though, in the problem statement.)
Problem Clarification:
For instance, if the string itself is "Northeastem Africa", you would report: 3 A's, 2 E's, 1 1, 10. If the string were
"Vacuum Cleaner", you would report: 2 A's, 2 E's, 2 U's.
Since we have not yet covered files, and the strings might be long, embed the string you are testing in your program. (Do
not type the string in response to an input statement! That is to0 much work!) In your program, just enter the string as a
constant, such as
S- "Northeastern Africa"
You may use the above as test data. Create three more sets of test data as well. After each successful test, leave the old
string in your program, just comment it out, and enter the next string, as in
Is - "Northeastern Africa" s
- "Vacuum Cleaner"
• Program must include comments
Transcribed Image Text:Count Vowels Write a Phyton program which counts the number of the five main vowels in a string and prints the result in table with headers and right-justified numbers. Test your program and process the long string, under "Real Data". See below. Use a Program Assignment Submission Sheet. (Do NOT include the "Problem Clarification" and "Real Data" sections or the long string itself, though, in the problem statement.) Problem Clarification: For instance, if the string itself is "Northeastem Africa", you would report: 3 A's, 2 E's, 1 1, 10. If the string were "Vacuum Cleaner", you would report: 2 A's, 2 E's, 2 U's. Since we have not yet covered files, and the strings might be long, embed the string you are testing in your program. (Do not type the string in response to an input statement! That is to0 much work!) In your program, just enter the string as a constant, such as S- "Northeastern Africa" You may use the above as test data. Create three more sets of test data as well. After each successful test, leave the old string in your program, just comment it out, and enter the next string, as in Is - "Northeastern Africa" s - "Vacuum Cleaner" • Program must include comments
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY