id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

abraskin@mbusd.org 2016_practice_set_5 > vowelSum
prev  |  next  |  chance

Each vowel is worth a different value. An 'A' is worth 1, an 'E' is worth 2, an 'I' is worth 3, an 'O' is worth 4, and a 'U' is worth 5.
Vowels may be upper or lower cased!
Given an array of Strings, add up the value of all the vowels in all the Strings.


vowelSum(["Hello", "World"]) → 10
vowelSum(["Aa", "Ee", "Ii", "Oo", "Uu"]) → 30
vowelSum(["Fuzzy", "Wuzzy", "was", "a", "bear"]) → 15

...Save, Compile, Run (ctrl-enter)

public int vowelSum(String[] arr) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 299

Copyright Nick Parlante 2017 - privacy