Write a function that counts the vowels (aeiou) in a string the user inputs. Make sure it counts upper- and lowercase vowels. Then write a routine that calls the function and displays the following output.

$ ./count_vowels.py
Enter some words: Go East young man!
The string "Go East young man!" has 6 vowels in it.


Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. C++ uses only /* */ for comments. 2. A program’s comments should connect the program code to the problem being solved.

Computer Science & Information Technology

Which of the following statements correctly describes the Cloud Balancing architecture?

a. A cloud architecture in which IT resources are load-balanced across multiple clouds. b. A cloud architecture in which IT resources are load-balanced within a single cloud. c. A cloud architecture in which IT resources are scaled in from a cloud to an on-premise environment. d. A cloud architecture in which IT resources are scaled out from an on-premise environment to a cloud.

Computer Science & Information Technology

Suggest appropriate reliability metrics for the classes of software system below. Give reasons for your choice of metric. Predict the usage of these systems and suggest appropriate values for the reliability metrics.

• a system that monitors patients in a hospital intensive care unit • a word processor • an automated vending machine control system • a system to control braking in a car • a system to control a refrigeration unit • a management report generator

Computer Science & Information Technology

Which of the following classes are predefined in C++?

A. runtime_error B. overflow_error C. underflow_error D. exception E. bad_exception

Computer Science & Information Technology