Assume s is a string of lower case characters.

Write a program that counts up the number of vowels contained in the string s. Valid vowels are: 'a', 'e', 'i', 'o', and 'u'. For example, if s = 'azcbobobegghakl', your program should print:

Number of vowels: 5
For problems such as these, do not include raw_input statements or define the variable s in any way. Our automating testing will provide a value of s for you - so the code you submit in the following box should assume s is already defined.

2 answers

i see you are taking the MIT online computer programming class and having trouble too!
Your program should create an array to hold the grades and display them after the program computes the average, maximum, and minimum grades
Create 3 functions. Each of these functions takes 2 parameters: the array and the array size. Note that the array size (the second parameter to each of these functions) should contain the actual number of the grades entered and not the size of the array. For example, if you create an array of 100 elements but the user enters the grades for only 10 students, the arrays size (the second parameter to each of the functions) should contain 10 and not 100. The functions are:
o Function Avg returns the average grade.
o Function Maximum returns the highest grade. o Function Minimum returns the lowest grade.
Similar Questions
  1. Assume s is a string of lower case characters.Write a program that counts up the number of vowels contained in the string s.
    1. answers icon 1 answer
    1. answers icon 3 answers
  2. Assume s is a string of lower case characters.Write a program that prints the number of times the string 'bob' occurs in s. For
    1. answers icon 2 answers
  3. Assume s is a string of lower case characters.Write a program that prints the longest substring of s in which the letters occur
    1. answers icon 2 answers
more similar questions