Write a c program that prompts the user to enter some data


Write a C program that prompts the user to enter some data regarding some clients. The user should prompt 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) as shown below. The user input terminates once the user enters a -999 as the account number. I will let you decide the appropriate prompts and edit messages.

You should store this information in an array of type struct (something).

Make the array sizes large enough to hold data for up to 25 clients.

Once the user has completed entering the data, the program should then SORT THE DATA IN ASCENDING ORDER BY ACCOUNT NUMBER, OR NAME OR BALANCE, and output the client data in table form of your design or exactly as follows BELOW.

If the user enters -999 as the first account number, the program should simply exit, and display an appropriate message of your choice.

The report will also be directed to an output text file with the same output as printed to the screen.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program that prompts the user to enter some data
Reference No:- TGS01673238

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)