Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Using Python version 2.7, design a program that prompts the user to enter a string.The program should then display the number of vowels and the number of consonants in the string. I am absolutely lost and don't even know how to start, any assistance would be appreciated.
I will also provide the pseudocode that was provided by the teacher, if it helps at all:
// main moduleModule main() // Variables Declare String str Declare Integer index Declare Integer vowels = 0 Declare Integer consonants = 0 // Get input from the user. Display "Enter a string." Input str
// Scan the string counting vowels and consonants. For index = 0 To length(str) - 1 If isVowel(str(index)) Then Set vowels = vowels + 1 Else If isConsonant(str(index)) Then Set consonants = consonants + 1 End If End For // Display the results. Display "Vowels: " , vowels Display "Consonants: " , consonantsEnd Module// The isVowel function returns True if the argument// is a vowel, or False otherwise.Function Boolean isVowel(String ch) Declare Boolean status // Flag // Convert the argument to uppercase. ch = toUpper(ch) // Is ch a vowel? If ch == "A" OR ch == "E" OR ch == "I" OR ch == "O" OR ch == "U" Then Set status = True Else Set status = False End If Return statusEnd Function// The isConsonant function returns True if the argument// is a consonant, or False otherwise.Function Boolean isConsonant(String ch) Declare Boolean status // Flag // Is ch a letter? If isLetter(ch) Then // Is ch not a vowel? If NOT isVowel(ch) Then Set status = True Else Set status = False End If Else Set status = False End If Return statusEnd Function
Describe in scholarly detail how you would use WBS as aid to finding staffing level requirements for project team?
Do you believe we require laws and regulation in telecommunications field at all? Why or why not?
Write a program that asks the user to enter a string. Create a pointer called strPtr and print the first character, third character and fifth character from your string using this pointer.
Prove the following. Remember to make only one step at a time and not skip steps. Remember to write what rule allowed you to make each step, and which lines you applied it to
You must use 2 arrays of integers to store the 2 test scores for each student. You must use a third array to store the average and a fourth array to store the letter grade.
Prepare a Disaster Recovery (DR) Plan for following organization; Company; Widget Works Electronics, Employees; 250, Infrastructure; 1 Central Office building housing primary datacenter. 10 satellite sales branches.
Create flowchart and psuedo code for math program which permits the user to enter two separate numbers and choose one of four mathematical operations (add, subtract, mutiply, divide).
What is a ? Discuss its usage in programming
They are asking candidates to describe briefly how they would satisfy StoreItRite's requirements as stated above. How would a successful candidate respond?
What does the processor do when it receives an interrupt request from an external device? Describe the sequence of events and the signals activated.
Write a statement for security policy for the following:Let LAN for small 100-person business, Pixel Inc. Business occupies one floor in office building. Everybody has a computer on his or her desk.
Consists of additive noise w(t) as the sample function of a gaussian process with zero mean and power spectral density No/2. Calculate the average probability of symbol error for this method of signalling
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd