Question: Write a program that uses a structure to store the following data about a customer account: Customer name Customer address City State ZIP code Telephone
Write a program that uses a structure to store the following data about a customer account:
Customer name
Customer address
City
State
ZIP code
Telephone
Account balance
Date of last payment
The programshould use an arrayof at least structures. It should let the user enter data into the array, change the contents of any element and display all the data stored in the array. The program should have a menudriven user interface.
Prompts And Output Labels.Your main menu should be the following:
Enter new account information
Change account information
Display all account information
Exit the program
The user is expected to enter or or or
The main menu is displayed at the start of the programand after the handling of choices and
If is entered for the main menu,the program prompts for each of the data listed above, in the order listed above, using the above data descriptions eg "ZIP code" as prompts followed in each case by a colon After reading in and processing the data, the program prints
You have entered information for customer number X
where X is the customer number: for the first customer and increasing by for each subsequent customer that is entered.
If is entered for the main menu,the programprompts for the customer number:
Customer number:
Upon entering a valid customer number the programdisplays all the data for the particular customer that has been saved:
Customer name :
Customer address:
City:
State:
ZIP code:
Telephone:
Account balance:
Date of last payment:
The programthen skips one or two lines and prompts for a change, using the same prompts as inchoice above for all the data items associated with a customer.
If is entered for the main menu,the programdisplays all the data for each customer that has been saved, using the display format inchoice above After the display of each customer the programprompts "Press enter to continue..." and waits for the user to hit return.
If is entered for the main menu,the programterminates
Input Validation OPTIONALWhen the data for a new account is entered, be sure the user enters data for all the fields. No negative account balances should be entered.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
