Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

§ Basic concepts of C++ language and Programming § Conditional statements of C l

ID: 3610496 • Letter: #

Question

§ Basic concepts of C++ language and Programming

§ Conditional statements of C language

§ Function in c language

§ String manipulation in c++

Guidelines

§ Code should be properly aligned and wellcommented.

You are required to write a program that accepts 5 input stringsfrom the user. After sorting strings into ascending order thestring will be displayed.

Detailed Description:

1. Declare a character type string array.

2. Use for loop

3. Get five string values from the user

4. Sort them in ascending order

5. Display them after sorting

6. Ascending order means string values starting from‘a’ will come first, and then starting from‘b’ and so on.

Explanation / Answer

#include #include using namespace std; string names[5]; void ascend()    {    string temp;    for(int i=0;i