Question: Write a sentinel loop in C++ that prompts the user for a string. Loop through the string and count and print the number of 'e's.

Write a sentinel loop in C++ that prompts the user for a string. Loop through the string and count and print the number of 'e's. Continue to prompt the user for a string until they enter '*' (the sentinel value). Declare string variable query to hold the string and int variable count to hold the count.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!