Write a program that prints the number of vowels

Assignment Help Programming Languages
Reference no: EM132211441

Question: Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e', 'i', 'o', 'u', and 'y' are vowels. For example, if the user enters the input "Harry", the program should print "The word contains 2 vowels and 3 consonants".

Reference no: EM132211441

Questions Cloud

Write a program using an array of records : Write a program that will read the radii of circles. Use an array of records where each record will have the radius of the circle read from the keyboard.
Write a program that reads from the external file : Write a program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers.
Write a program for displaying the deque contents : Write a program that reads in a sequence of characters and stores each character in a deque. Display the deque contents. Then use a second deque to store.
Write a program to display the count on the screen : Write a program that reads a text from the keyboard until the user presses the "Enter" key. Your program must count the number of uppercase alphabets.
Write a program that prints the number of vowels : Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e', 'i', 'o', 'u', and 'y'.
Write program that reads a text file and print out any words : Write a program that reads a text file and prints out any words that begin with a user-given string. The filename should be given at the command line.
Write a program that reads in the radius of a circle : Write a program that reads in the radius of a circle and displays the circle's diameter circumference and area. Use the constant value 3.14159 for pi.
Write a program to transmit serially the message : Write a program to transmit serially the message "SWITCH ON" or "SWITCH OFF" depending on the status of the simple switch connected to pin P1.2.
Calculate the amount of depreciation expense : Calculate the amount of depreciation expense that Swifty should record for Machine B each year of its useful life under the following assumptions

Reviews

Write a Review

Programming Languages Questions & Answers

  Why you think additional personnel are generally required

Why you think additional personnel are generally required during the later stages of systems implementation? In addition, how do training activities differ between end users and system operators? Why?

  Write java program which declares the array alpha

Write the Java program which declares the array alpha of 50 elements. Initialize array so that first 25 elements are equal to square of the index variable and the last 25 elements

  Write program to prompt user to enter year-find leap year

Write down program to prompt the user to enter year, and then tells user whether it is leap year. If user doesn't enter valid year (i.e., a positive integer).

  Write pattern matching statement using a regular expression

Write a pattern matching statement using a regular expression that returns the GI number from the header of a sequence in a FASTA file - Write a Perl program that produces the following output when searching for the word RNA in the paragraph

  Write a program to manage a user list that can be modified

Write a program to manage a user list that can be modified and saved to a text file. Input text file consisting of pairs of usernames and passwords, separated by a colon (:) without any spaces.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Write console program to read in a text file of first names

Write a console program to read in a text file of first and last names, print them on the screen, and write them (one first / last name per line) to another file

  Write program which will ask user to enter last names

Write a program which will ask the user to enter last names of our candidates in class officer's president election and number of votes received each candidate.

  Script that is executed in an active server page

The contents of a form on a client can be sent to a server pageby using

  Deisgn class contains data fields for height and surfacearea

Deisgn a class named Rectangle that contains data fields for height width and surfaceArea and a method named computeSurfaceArea?

  Explain importance of developing strategy for navigation

Discuss the importance of developing a strategy for the navigation, and describe the common navigation elements. Navigation is a very important part of your portfolio.

  Program ask user to enter starting amount in savings account

There is a Savings and a Checking account. Your program should begin by asking the user to enter the starting amount in the checking and savings accounts.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd