1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sonbull [250]
3 years ago
14

[c++] Write a recursive function takes a word string as input argument and reverse the word. Print out the results of recursive

calls. Also write a main program accepts input from the user and then call the recursive function.
Example:
Enter a word: hello
h
eh
leh
lleh
olleh ...?
Computers and Technology
1 answer:
Aleks04 [339]3 years ago
3 0
I will try to give you the best answer I can possibly come up with. 
The easy way to get it is to store it into an array of strings and print the array of string backwards. You can do that by starting at the last part of the array down to the first letter.
You might be interested in
What is done to prevent a plan from becoming confusing because of too much detail
Elena L [17]
When providing instructions or rule to follow, it is important to make them as clear as possible. Simple commands follow by an example (when possible) are basic steps to deliver a precise massage. 
Another thing is to bare in mind who is receiving the instruction. The receptor should be apt to the plan knowing vocabulary, structures, etc. 
Last but not least, check if the receptor understood the plan, double check if you think it is necessary 
4 0
4 years ago
A random Interference that obscures a signal
wariber [46]

Answer:

noise because it is a random interference that obscures a signal.

7 0
3 years ago
5. Pinker is essentially arguing that all humans are influenced by both nature and nurture. We are born with some aspects and we
Nookie1986 [14]
I agree with this theory to some degree mostly do to the fact that public schools are the main way to learn in most countries 
5 0
3 years ago
Read 2 more answers
the function must find the substrings of s that start with a vowel and end with a consonant, then print the alphabetically first
PolarNik [594]

According to the parameters given in the questions above, the alphabetically lowest and highest substrings that start with a vowel and end with a Consonant is given below.

<h3>What is the determined substrings described above?</h3>

The determined substring is given by the following:

def findSubstrings(s):

   sub_strings_list=[]    #the required substrings list

   vowels=['a','e','i','o','u']    #vowels list

   for i in range(0,len(s)):    

       for j in range(i+1,len(s)+1):

           sub_string=s[i:j]    #slicing the original string into substring

           #checking whether the substring starts with a vowel and ends with a consonant

           if(sub_string[0] in vowels and sub_string[-1] not in vowels):    

               if(sub_string not in sub_strings_list):    #checking if the substring is already in the list

                   sub_strings_list.append(sub_string)    #if all conditions are satisfied adding the substring to the list

   sub_strings_list.sort()    #sorting the list alphabetically

   print(sub_strings_list[0])    #printing the first substring in the list

   print(sub_strings_list[-1])    #printing the last substring in the list

s=input()

findSubstrings(s)

Learn more about substrings:
brainly.com/question/21306076
#SPJ4

Full Question:

Consider a string, s — An alphabetically-ordered sequence Of Of s would be {"a", "ab•, "abc • , "bcu, If the sequence is reduced to only those substrings that start with a vowel and end with a consonant, the result is Cab", •abc"}. The alphabetically first element in this reduced list is •ab", and the alphabetically last element is "abc'. As a reminder:

Vowels: a, e, i, o, and u.

Consonants: b, c, d, f, g, h, i, k, l, m, n, p, q, r, s, t, v, w, x, y, and z.

For a given string, determine the alphabetically lowest and highest substrings that start with a vowel and end with a Consonant.

7 0
2 years ago
Breaking difficult problems down into smaller more manageable pieces is an example of
allsm [11]

Answer:

Divide and Conquer

Explanation:

8 0
3 years ago
Other questions:
  • An email message form includes all of the following main areas except
    11·2 answers
  • When we put 10+ points for when we ask a question, do we loose the points we have?
    12·1 answer
  • 1. According to the Department of Commerce, _________ percent of single moms in the US qualified as poor.​
    8·1 answer
  • A polyalphabetic cipher uses many ___
    6·1 answer
  • Anyone wanna play roblox?? My user is Tsvetok_luis
    11·2 answers
  • Database users who access data only through application programs are called
    9·1 answer
  • The do-while loop is a __________ loop that is ideal in situations where you always want
    6·1 answer
  • According to the textbook, the definition of transition is
    13·1 answer
  • Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
    8·1 answer
  • 2.13.4 Colorful Caterpillarhel ????
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!