Write a program that asks the user for a letter

Assignment Help Python Programming
Reference no: EM131474050

Python Assignment incorporating Functions & loops

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.

If you can write the program solving the Assignment instructions provided. Requirements for each function are to be followed exactly.

Reference no: EM131474050

Questions Cloud

Frequently asked questions about forecasting : It provides answers to frequently asked questions (FAQs) about forecasting. For example, one of the FAQs.
Find the probability that the randomly chosen marble : If a single marble is chosen at random, find the probability that the randomly chosen marble is: a. red P(red)=. b. white P(white), and c. blue OR redx P.
How can average nurses be involved in the political process : What does it mean to be a change agent? Give two examples of when you were a change agent or witnessed another nurse as a change agent.
Identify different types of marketing research company uses : Identify the different types of marketing research it uses and describe the importance of that research to the company using the provided template.
Write a program that asks the user for a letter : Write a program that asks the user for a letter. The program should then determine if the letter is a vowel or not
Explain the psychological addiction and physical addiction : Discuss the differences between psychological addiction and physical addiction as related to the use of tranquilizers, and explain Roy's addictions.
Test goodness-of-fit-homogeneity-independence : To see if your bag was unusual should you test goodness-of-fit, homogeneity, or independence?
Derive excitation tables for given circuit : For the following circuit, Complete the timing diagram starting with Y1Y2 = 00 (at time = 0). Derive excitation tables.
Define what kind of an addiction this person has : Define what kind of an addiction this person has. Give a DSM diagnosis and your reasons for it. Explain one counseling approach.

Reviews

len1474050

4/25/2017 8:29:17 AM

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. Make sure you account for user input error. Test your code by trying to cause errors in input. If you can write the program solving the Assignment instructions provided. Requirements for each function are to be followed exactly.

len1474050

4/25/2017 8:28:59 AM

Python Assignment incorporating Functions & loops 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.

Write a Review

 

Python Programming Questions & Answers

  Without using the system function to call any bash commands

without using the system function to call any bash commands write a python program that will implement a simple version

  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..

  Python program that reads in a series of positive integers

Write a Python program that reads in a series of positive integers and writes out theproduct of all the integers less than 25 and the sum of all the integers greater than or equal to 25. Use 0 as a sentinel value

  Let ll be a list of integers

Let LL be a list of integers. Use list comprehension to produce teh following lists. Each one should just take onel line. Anser questions as two comments.

  Segment that prompts the user for an arithmetic operator

The variables x and y refer to numbers. Write a code segment that prompts the user for an arithmetic operator and prints the value abtained by appying that operator to x and y.

  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)

  Overall architecture diagram of the external facing system

Design a Service Oriented Architecture-based solution for a given domain. You must show a good understanding of Service Oriented principles. In addition you must show knowledge and understanding of specific SOA techniques, practices and approaches..

  Python scripting language

Your programming project will be a simple, working program, using a Python scripting language, which utilizes a good design process and includes: Sequential, selection, and repetitive programming statements as well as and At least one function call

  Assignment work in python

Write a function interleave two pictures take the first 20 pixels from the first picture and then 20 pixels from the second picture and then the next 20 pixels from the first picture and then the next 20 pixels from the second picture and so on till ..

  Design reusable parameterised functions

create multiple icon styles that can be drawn at different sizes, it would be very repetitive if you tried to code the whole solution using ‘brute force.' Instead you are strongly encouraged to design reusable parameterised functions to draw the i..

  Assume an n × n matrix a is given

Assume an n × n matrix A is given, containing only 1's and 0's, such that, in each row, all 1's come before all 0's. Give an O(n log n) algorithm to count all 1's in A.

  The program should use a boolean= valued function

Write a program that accepts a word as input and determines wehther or not it has three consecutive letters in the alphabet. The program should use a Boolean= valued function named isTripleConsecutive that accepts an entire word as input.

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