Generate a c program to sort items of a structs-of-array


Generate a C++ program to sort items of a structs-of-array. Assume that the struct is 

struct invoice 
{
unsigned int custNo;
unsigned short amount;
string owner;
};

Generate an array with 20 invoices, which are randomly initiated with custNO (1000-5000), amount (1-2000 as dollar amount), owner (3-UpperLetter string, such as ABC, COM). Then generatethe Selection Sort algorithm to 

- Sort cities over custNo 

- Sort cities over amount.

- Sort cities over owner.

In a menu selection, user chooses one of these option, or "exit" option to exit the program.

Solution Preview :

Prepared by a verified Expert
History: Generate a c program to sort items of a structs-of-array
Reference No:- TGS02940168

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)