Write C Program Following Prompt User Input Sentence B Gen Erate Random Number Range Zer Q28734813

Please Answer quickly
. Write a C++ program that does the following a. Prompt the user to input a sentence b. Gen erate a random number in the range of zero and the length of the string (this will become a random location in the string) c.Print the number of letters a and e in the sub-string starting from the random location till the end of the strings. here are n ence andhii in the sentence after 2 locat ion re are fas and 2 es in the ter a sentence: that is a paln tree. here are 8 as and 2 s in the sentence after 14 location. Write a C++ program that does the following a. Prompt the user to input a sentence b. Gen erate a random number in the range of zero and the length of the string (this will become a random location in the string) c.Print the number of letters ‘a’ and ‘e’ in the sub-string starting from the random location till the end of the strings. here are n ence andhii in the sentence after 2 locat ion re are fa’s and 2 e’s in the ter a sentence: that is a paln tree. here are 8 a’s and 2 ‘s in the sentence after 14 location Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.