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

  Takes a directory containing files that record

Create a program called grading.py that takes a directory containing files that record how student's performed on their assignments and from these files determines each students grades in addition to the course statistics.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Q1if we knew all the ecological social and competitive

q1if we knew all the ecological social and competitive forces that regulate populations and in reality we couldnt what

  Write a program in python to draw a simplified face

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  Write a function that will take two arguments

Write a function that will take two arguments: a word to be searched for and a list of strings containing the grid and write code to read, in turn, each line of the file, remove the newline character and append the resulting string to a list of stri..

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Shopping List 1.0 - You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection, repetition,..

  Implement a triangle class in python

CSc 11300 Spring 2016 Programming Languages. Implement a Triangle class in Python: The triangle is defined by its three side lengths - a, b, and c. The class includes methods that perform the following operations: is_triangle - checks whether the giv..

  Design part of the code for the haunted house game

Create a cheat commands in the game so player can teleport to any location in the map - You are tasked with improving and designing part of the code for the Haunted House game.

  Design a function that accepts an integer

Design a function that accepts an integer argument and returns the sum of all the integers from 1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1, 2, 3, 4, . . . 50. Use recur..

  How many times each word has occurred in the text file

The values in this dictionary should be a count of how many times each word has occurred in the text file. Second, add the word into a data structure that is keeping track of word information for the completion process.

  Compute second order differential equations for capacitor

Compute the 2nd order differential equations for capacitor voltage and inductor current in a series RLC circuit. Provide this derivation in your report.

  Python programming to solve this problem

Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.

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