In the programming language of your choice, write a program that accepts an array of words, and calculates the number of vowels. For example, Given:
['hello', 'world']
Produces:
a: 0
e: 1
i: 0
o: 2
u: 0
In the programming language of your choice, write a program that accepts an array of words, and calculates the number of vowels. For example, Given:
['hello', 'world']
Produces:
a: 0
e: 1
i: 0
o: 2
u: 0
Imagine you have a web application with authors, posts and comments. You are wanting to a manual approval step before a Comment is publically visible. When a comment is made, an email is to to be sent to the author with the comment and link which will approve the comment when clicked. Once the link is clicked, the comment is then visible
Detail the steps which you would take to achieve this. For the purpose of this exercise, you are can assume that there are no automated tests to upate. I have added the first step for reference:
"status"
attribute to Comment
, with default value "unapproved"