Tuliskan satu aturcara mengarahkan pengguna memasukkan satu ayat dan seterusnya menghitung dan mempaparkan bilangan vokal (A, E, I, O, U sama ada huruf besar atau huruf kecil) dari ayat berkenaan. Write a program to prompt the user to key in a sentence and then count and display the number of vowels (A, E, I, O, U, both uppercase and lowercase) in the sentence.using array. Contoh Example: Please key in a sentence = I am a UMS student Output: The number of vowels is as follows: A: 2 E I OU U : 1 0 2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Tuliskan satu aturcara mengarahkan pengguna memasukkan satu ayat dan
seterusnya menghitung dan mempaparkan bilangan vokal (A, E, I, O, U sama ada
huruf besar atau huruf kecil) dari ayat berkenaan.
Write a program to prompt the user to key in a sentence and then count and
display the number of vowels (A, E, I, O, U, both uppercase and lowercase) in the
sentence. using array.
Contoh
Example:
Please key in a sentence = I am a UMS student
Output:
The number of vowels is as follows:
A: 2
1
1
0
2
E
I
OU
:
:
:
Transcribed Image Text:Tuliskan satu aturcara mengarahkan pengguna memasukkan satu ayat dan seterusnya menghitung dan mempaparkan bilangan vokal (A, E, I, O, U sama ada huruf besar atau huruf kecil) dari ayat berkenaan. Write a program to prompt the user to key in a sentence and then count and display the number of vowels (A, E, I, O, U, both uppercase and lowercase) in the sentence. using array. Contoh Example: Please key in a sentence = I am a UMS student Output: The number of vowels is as follows: A: 2 1 1 0 2 E I OU : : :
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education