Previous Next
0 / 15
Module DEMO-33-68DEMO-OOP-33

Vowel Counter Method

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read one word, implement countVowels, and print the number of vowels in it.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. input word

Output Format

Print the exact report in this order:

  1. Vowels

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
education
Vowels: 5
Input: input word = "education".
Key calculation(s): count = 0 | lower = "education".toLowerCase() | "Vowels: " + result = "Vowels: 5".
Output:
Vowels: 5
Sample #2
Public sample
java
Vowels: 2
Input: input word = "java".
Key calculation(s): count = 0 | lower = "java".toLowerCase() | "Vowels: " + result = "Vowels: 2".
Output:
Vowels: 2

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings