Question: Code block c++,, help plz!! Exercise#2: which name shall appear last on a list? Using loops, write a program to prompt the user for several

Code block c++,, help plz!!  Code block c++,, help plz!! Exercise#2: which name shall appear last

Exercise#2: which name shall appear last on a list? Using loops, write a program to prompt the user for several names ending wit shall appear last on a list (based on alphabetical order). For example, if the input is: "Ahmed F the output should be "Salem" because if the names are sorted, "Salem" shall appear h "#"and then to display the name that Note: first letter of any name is kept in upper-case. Sample Input/Output: Enter a sequence of names ending wit aisal Ali Batool Salem Saeed # alen shall appear 1ast on the list. nter a sequence of names ending with 1i Alya Alaa Ameera Amal Ab del rahman Ameer Abrahim # Ameera shall appear last on the list

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!