This is an incomplete program. The goal of the program is to count the number of times 'a', 'e', 'i', 'o', 'u' (and their upper case equivalents) appear in a file.
Complete that program, by defining a?count_vowels?function, that satisfies the following specs:
- Function count_vowels takes one argument, called in_file, that specifies the name of the input file.
- If in_file cannot be opened for reading, the function should print on the screen "Error in opening file for reading" and return.
- Otherwise, the function counts and prints the number of times 'a', 'e', 'i', 'o', 'u' (and their upper case equivalents) appear in a file. Counting should be case-insensitive, so an 'A' should be counted as an 'a' and so on.
IMPORTANT: You are NOT allowed to modify in any way the main function.
For example, for input file: (The CAT is jumping over an airplane. TODAY IS WEDNESDAY. UUUu), the complete program should produce EXACTLY this output:
a: 6 times e: 5 times i: 4 times o: 2 times u: 5 times
This question was answered on: Oct 07, 2020Buy this answer for only: $15
This attachment is locked
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Oct 07, 2020EXPERT
GET INSTANT HELP/h4>
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.