The user should be prompted for client account number (a UNIQUE positive integer between 1 and 1000), a name (a string, up to 25 in length), and the account balance (a positive floating point number) for each client. The user input terminates once the user enters a -999 as the account number.
Please refer to the attached document (P5.docx) for exact details.© BrainMass Inc. brainmass.com October 2, 2020, 12:03 am ad1c9bdddf
Attached 306677.c has been tested for warning and error free compilation via "gcc -Wall 306677.c". It has ...
Code does thorough input validation in most places (though it is assumed that user will supply correct input), and makes use of function pointers and qsort function from standard C library, for sorting the data on various structure fields.