In English, a vowel is one of 5 letters representing a vowel sound: a, e, i,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In English, a vowel is one of 5 letters representing a vowel sound: a, e, i, o, u A consonant is a letter (sound) of the English alphabet that is not a vowel Instructions 1. Analysis: Identify the input(s), process and output(s) for a program that • prompts the user to enter two stringsA consonant is a letter (sound) of the English alphabet that is not a vowel. display the length and last character of each string • check and display whether the last character of the first string is a vowel or consonant or is not a consonant or a vowel, • check and display whether the last character of the second string is a vowel or consonant or is not a consonant or a vowel • check and display whether the second string is a substring of the first string, • whether the random character is a substring of the first string and 2. Design: Using Google Draw or diagrams.net, create the flowchart to design the process 3. Implementation: Write the program designed in your flowchart. Here are some samples of how your program should run: Enter the first string: ABCD Enter the second string: BC The length of the first string is 4 and its last character is D The length of the second string is 2 and its last character is C The last character of the first string, D, is a consonant The last character of the second string, C, is a consonant The second string, BC, is a substring of the first string ABCD The orange text is typed by the user Enter the first string: ABC# Enter the second string: AE The length of the first string is 4 and its last character is # The length of the second string is 2 and its last character is E The last character of the first string, #, is NOT a valid consonant or a vowel The last character of the second string, E, is a vowel The second string, BE, is NOT a substring of the first string ABC# In English, a vowel is one of 5 letters representing a vowel sound: a, e, i, o, u A consonant is a letter (sound) of the English alphabet that is not a vowel Instructions 1. Analysis: Identify the input(s), process and output(s) for a program that • prompts the user to enter two stringsA consonant is a letter (sound) of the English alphabet that is not a vowel. display the length and last character of each string • check and display whether the last character of the first string is a vowel or consonant or is not a consonant or a vowel, • check and display whether the last character of the second string is a vowel or consonant or is not a consonant or a vowel • check and display whether the second string is a substring of the first string, • whether the random character is a substring of the first string and 2. Design: Using Google Draw or diagrams.net, create the flowchart to design the process 3. Implementation: Write the program designed in your flowchart. Here are some samples of how your program should run: Enter the first string: ABCD Enter the second string: BC The length of the first string is 4 and its last character is D The length of the second string is 2 and its last character is C The last character of the first string, D, is a consonant The last character of the second string, C, is a consonant The second string, BC, is a substring of the first string ABCD The orange text is typed by the user Enter the first string: ABC# Enter the second string: AE The length of the first string is 4 and its last character is # The length of the second string is 2 and its last character is E The last character of the first string, #, is NOT a valid consonant or a vowel The last character of the second string, E, is a vowel The second string, BE, is NOT a substring of the first string ABC#
Expert Answer:
Answer rating: 100% (QA)
Solution Algorithm Input Prompt the user to enter the first string st1 Prompt the user to enter the second string st2 Calculate Length and Last Characters Calculate the length of st1 and st2 len1 and ... View the full answer
Related Book For
The Analysis Of Biological Data
ISBN: 9781319226237
3rd Edition
Authors: Michael C. Whitlock, Dolph Schluter
Posted Date:
Students also viewed these programming questions
-
N P B D E F G H Vala Production/Sales Selling price per unit Direct Material Direct Labor Rent Depreciation 18,372 units 100 M JW Sports Supply Contributed Annual Income Statement For Year Ended...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Duhail Complex averages about 15% of Bananas spoil before they can be sold. The manager purchases 200kg of bananas for 2.03QR per kilogram. What is the selling price if there is a 45% markup on the...
-
Consider the linear differential equation y'" + 5y" + 3y' - 9y = 0. (a) Write the equation in the form L[y] = 0 for a differential operator L = p(D). (b) Find a basis for kerL, and then write out the...
-
12 f The stock of Keif Corp has an expected return of 13% and Fireball Corp has an expected return of 30%. If you put 49% of your money in Keif and 51% in Fireball, what is your expected return for...
-
Where do the following accounts (and their balances) appear in the balance sheet? a. Dividends Payable-Common Stock b. Stock Dividend Distributable
-
Presented below and on page 649 are three different and unrelated situations involving depreciation accounting. Answer the question(s) at the end of each situation. Situation I Recently, Broderick...
-
Choose a case regarding a sex-related offense or a crime against a child and provide a summary of the case and any reached disposition/s in the case, if adjudication was completed. Also, discuss some...
-
Problem 5. SAVE and PREVIEW ONLY SAVE and PREVIEW ONLY -- ANSWERS NOT SUBM (1 point) Get help entering answers A car whose position, s, is given by the following table: t(sec) 0 0.2 0.4 0.4 0.6 0.6...
-
Provide statistics that show a decline in manufacturing jobs in the United States has not caused manufacturing output to decline and the narrative that we don't make anything here anymore may not be...
-
Explore the principles of structural health monitoring (SHM) using advanced sensor technologies and data analytics to assess the condition, performance, and resilience of civil infrastructure, and...
-
Role models are sources of inspiration for your leadership style. The ways in which your role models approach their responsibilities and conduct their activities shows you how you might lead and what...
-
Depreciation: Straight-Line and Double Declining Balance A piece of heavy equipment acquired on January 1 at a cost of $261,000 has an estimated useful life of 25 years. Assuming that it will have no...
-
The government has and continues to use various approaches and reforms in the budget to address many economic challenges faced by the country. Use three key reforms as an example to show government's...
-
Procedure: Design a tuned PID controller for a spring/damper system. 1- Open MATLAB Simulink (blank project) 2- Add the following functions from the library: Step Au 1 s+1 Gain Transfer Fcn1 Scope...
-
ABC company leased new advanced computer equipment to STU Ltd on 1 January 2019.STULtd has to pay annual rental of $290,000 starting at 1 January 2019. It is a four years lease with ultimate rental...
-
As the Arctic warms and winters become shorter, hibernation patterns of arctic mammals are expected to change. Sheriff et al. (2011) investigated emergence dates from hibernation of arctic ground...
-
Examine the frequency distribution of gene lengths in the human genome displayed in Figure 4.1-1. Is the population median gene length in the human genome likely to be larger, smaller, or equal to...
-
Assignment Problem 21 from Chapter 11 discussed the relatedness of subordinate males to breeding females in the Seychelles warbler. Five subordinates that did not help feed the offspring of the older...
-
Jacobs Company manufactures a single product and uses a standard costing system. The nature of its product dictates that it be sold in the period it is produced. Thus, no ending work in process or...
-
Jason Tybell has been employed as a junior accountant by the professional accountancy corporation of Rodgers & Philips for two years. Jason graduated with a bachelors degree in accounting from State...
-
Helen Kanell has a 4.0 grade point average and is in her last semester of college at Empire State University. Helen has already accepted a position to join the accounting firm of Big & Apple LLC....
Study smarter with the SolutionInn App