Write a program that asks the user for a letter

Assignment Help Python Programming
Reference no: EM131470266

Write a program that asks the user for a letter. The program should then determine if the letter is a vowel or not.

In this homework you will, of course, be writing functions to perform the individual components of the program. Make sure that you follow these requirements EXACTLY.

For this assignment, you should have the following functions:

1. First function: AskForLetter(): This function will repeatly as the user for a single letter until the user types ‘quit' to exit the program or they have entered a vowel. This function will use the built-in python function called len. len is used to determine the length of an input. For example, if the input from the user is ‘i', len(‘i') will return 1. Try this in python interpreter. If the len of the user input is 1, then this function should call the second function below.

2. Second function: IsVowel(letter): This function will take as input a variable called letter and will determine if this letter is a vowel or not. If it is a vowel it will return True and is not it will return To determine if letter is vowel or not, this function will call a third and a fourth function below.

3. Third function: IsLowercaseVowel(letter): this function will take a single variable as input called letter and will return True if the letter is a lowercase vowel and will return False if not.

4. Fourth function: IsUppercaseVowel(letter): this function will take a single variable as input called letter and will return True if the letter is a uppercase vowel and will return False if not.

5. Fifth function: PrintIsVowel(): this function will print a sentence to the user (standard out) indicating if the input is a vowel or not. It will be called inside AskForLetter(letter). This function will take as input the original letter input by the user so that it can be included in the output sentence.

Make sure you account for user input error. Test your code by trying to cause errors in input.

Reference no: EM131470266

Questions Cloud

What is business ethics and public opinion : Business Ethics and Public Opinion. Assume that you are a high-level manager for a shoe manufacturer. You know that your firm could increase its profit margin.
Analyse the impact of technology on communication : Critically analyse the impact of technology on communication skills in the workplace. Communication is an art not a skill. Critically analyse the statement
Define ethical decision making : Ethical Decision Making. Shokun Steel Co. owns many steel plants. One of its plants is much older than the others. Equipment at that plant is outdated.
Table design and relationships : The table design and relationships must support the following functionality:
Write a program that asks the user for a letter : Write a program that asks the user for a letter - This function will take as input the original letter input by the user so that it can be included in the output sentence.
User to specify an input file and output file : Write a program (project) that asks the user to specify an input file and output file. Have the program read each line in the input file to find the smallest.
Describe biodiversity and how it is measured : Explain biodiversity and how it is measured. Identify the techniques that humans can utilize to ensure conservation of ecosystems.
What are the specific training or education requirements : What other qualifications are needed? Does the career demand a certain trait. skill or aptitude that I do or do not have - What are the specific training or education requirements?
Explain the significance of the core value of the event : You are expected to complete an individual essay. This should discuss the core values of the event, the core values of the event, the significance of design.

Reviews

len1470266

4/22/2017 4:34:14 AM

Just had a lecture in Python covering the following topics: . if/elif/else . while/break/continue/else . operators . Functions If you can write the program solving the Assignment instructions provided. Requirements for each function are to be followed exactly.

len1470266

4/22/2017 4:32:56 AM

:If you can solve the following assignment attached. Just had a lecture covering - . if/elif/else . while/break/continue/else . operators . Functions In this homework you will, of course, be writing functions to perform the individual components of the program. Make sure that you follow these requirements EXACTLY.

Write a Review

Python Programming Questions & Answers

  Create a luminance (grey) histogram for a picture

In this activity, you will create a \"luminance (grey) histogram\" for a picture # chosen by the user - A luminance histogram is created by counting how many # pixels are there for each level of luminance and then by drawing a chart

  Project - movie lovers club

The Movie Lovers Club is a club of persons that love to watch movies and keep track of how many times they have watched the movies they love.

  Write a loop that counts the number of space

Write a loop that counts the number of space characters in a string. Recall that the space character is represented a

  Define a function to calculate the values

Be sure to define a function to calculate the values and print the table displaying the interest rate in the first column, the monthly payment in the second column, and the total payment in the third column. Your program should not allow the user to ..

  Implement core security features

What you will be implementing here is inspired by real world cases such as the Conficker work. To have any chance of defeating such a threat, you need to understand how they defend themselves.

  Develop python script that will implement the given command

Write a python script that will implement the following command: merge sourcedirectory1 sourcedirectory2 destinationdirectory

  Find the output of the given script in python

Find the output of the following script in Python. Note: All statements are valid. Rewrite the following for loop Python statements using while loop.

  What are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis please explain?

  Determine which value is on the most dice

Determine which value is on the most dice, and set those dice aside so they won't be re-rolled. Repeat steps (2) and (3) until you're out of rolls (in Yahtzee, it's a maximum of 3 rolls)

  Write a program that should control the motion of paddle

If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.

  Construct a model of a byte adder

Construct a model of a byte adder based on the bit adder and Specify an algorithm for integer addition based on binary operation - Create a program in Python which implement the model of the adder

  Write a python program that executes the steps

Given the previous Introduction, write a Python program that executes the following steps: 1. Asks the user to enter a string (Obj) containing all the object names (see example below); 2. Asks the user to enter a string describing the initial state, ..

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