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
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
Get step-by-step solutions from verified subject matter experts
