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

  Modify the caesar cipher program you completed

In this project, you will be modifying the Caesar Cipher program you completed earlier in the semester.

  Write a python program to demonstrate a theme for your robot

Write a Python program to demonstrate a theme for your robot. Your team must think of something fc your robot to do using the sensors and/or motors.

  Print out the average score accurate to two decimal places

print out the average score accurate to two decimal places.

  Write another python program to decode the encoded message

Write another Python program to decode the encoded message according to the "circular Caesar cipher" problem presented in Programming Exercises 7 and 8 of Book Chapter 5.

  Website to inform about aspect of the local environment

ICT112 Assignment - write a Python program that generates a small web site to inform Sunshine Coast people about some aspect of the local environment or a local sustainability issue.

  Write the pseudo code and then code it in python

Write the pseudo code and then code it in Python. Write a function that has number of tosses as an input parameter. As usual, screen copy your code and results.

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

  Write python program that prompt user to enter integer value

Write a python program that computes the average of 5 numbers. Create 5 variables to store 5 different integers. Prompt the user to input the integers.

  Write program that will calculate a tip and a tax on a meal

Write a program that will calculate a XXX% tip and a 6% tax on a meal price. Each programming assignment should have the following header, with italicized text appropriately replaced.

  Design and implement a python program which plays poker

The goal of this project is to gain practice with use of classes and creating functions. You will design and implement a Python program which plays simplified Texas Hold'em Poker.

  Development on windows and linux systems

develop a simple, data-intensive application in Python - Data Analysis of a Document Tracker

  Identify whether an individual character is a numeric digit

You may identify whether an individual character is a numeric digit via expr[pos].isdigit() There are similar funtions isalpha for letters and isalnum for alphanumerics (letters or digits).

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