Computer Science, asked by arshuakagami, 1 month ago

write a program to read a text file and count number of vowels in it​

Answers

Answered by lata40386
1

Answer:

Steps

  • Ask the user to enter a file name.
  • Initialize a variable count = 0 to store the vowel count.
  • Read the content of the file character by character. Use a switch statement to check if a character is a vowel or not. If a character is a vowel, increment count.
  • The number of vowels in the input file is equal to count.

Explanation:

hope it helps you!!

Similar questions