11.7: Customer Accounts Write a program that uses a structure to store the following data about a customer account: Customer name Customer address City State ZIP code Te 11.7: Customer AccountsWrite 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 program should use an array of at least 20 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 menu-driven user interface. Prompts And Output Labels. Your main menu should be the following:     1. Enter new account information     2. Change account information     3. Display all account information     4. Exit the programThe user is expected to enter 1 or 2 or 3 or 4.The main menu is displayed at the start of the program and after the handling of choices 1, 2 and 3.If 1 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 (e.g. “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 Xwhere X is the customer number: 0 for the first customer and increasing by 1 for each subsequent customer that is entered.If 2 is entered for the main menu, the program prompts for the customer number:     Customer number:Upon entering a valid customer number the program displays 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 program then skips one or two lines and prompts for a change, using the same prompts as in choice 1 above for all the data items associated with a customer.If 3 is entered for the main menu, the program displays all the data for each customer that has been saved, using the display format in choice 2 above. After the display of each customer the program prompts “Press enter to continue…” and waits for the user to hit return.If 4 is entered for the main menu, the program terminates. Input Validation (OPTIONAL).When 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.  Instructor Notes: The output can be a bit tricky to interpert, so below is what it should look like. The inputs from MPLs test are in bold. Note the inconsistent use of line breaks. There is also a weird typo in the output for choice #1. 1. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 1 Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: 23.14Date of last payment: NeverYou have entered informationfor customer number 01. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 1 Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: 99999.99Date of last payment: YesterdayYou have entered informationfor customer number 11. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 3Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never Press enter to continue… Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: $99999.99Date of last payment: Yesterday Press enter to continue… 1. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 2Customer number: 0Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never Customer name:George BarkerCustomer address:29 Main StreetCity:Kansas CityState:MissouriZIP code:23456Telephone:919-999-8888Account balance:23.14Date of last payment:Never 1. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 3Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never Press enter to continue… Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: $99999.99Date of last payment: Yesterday Press enter to continue… 1. Enter new account information2. Change account information3. Display all account information4. Exit the program Enter your choice: 4 Show more

11.7: Customer AccountsWrite 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 program should use an array of at least 20 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 menu-driven user interface.

Prompts And Output Labels. Your main menu should be the following:     1. Enter new account information     2. Change account information     3. Display all account information     4. Exit the programThe user is expected to enter 1 or 2 or 3 or 4.The main menu is displayed at the start of the program and after the handling of choices 1, 2 and 3.If 1 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 (e.g. “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 Xwhere X is the customer number: 0 for the first customer and increasing by 1 for each subsequent customer that is entered.If 2 is entered for the main menu, the program prompts for the customer number:     Customer number:Upon entering a valid customer number the program displays 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 program then skips one or two lines and prompts for a change, using the same prompts as in choice 1 above for all the data items associated with a customer.If 3 is entered for the main menu, the program displays all the data for each customer that has been saved, using the display format in choice 2 above. After the display of each customer the program prompts “Press enter to continue…” and waits for the user to hit return.If 4 is entered for the main menu, the program terminates.

Input Validation (OPTIONAL).When 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. 

Instructor Notes:

The output can be a bit tricky to interpert, so below is what it should look like. The inputs from MPLs test are in bold. Note the inconsistent use of line breaks. There is also a weird typo in the output for choice #1.

1. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 1

Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: 23.14Date of last payment: NeverYou have entered informationfor customer number 01. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 1

Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: 99999.99Date of last payment: YesterdayYou have entered informationfor customer number 11. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 3Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never

Press enter to continue…

Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: $99999.99Date of last payment: Yesterday

Press enter to continue…

1. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 2Customer number:

0Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never

Customer name:George BarkerCustomer address:29 Main StreetCity:Kansas CityState:MissouriZIP code:23456Telephone:919-999-8888Account balance:23.14Date of last payment:Never

1. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 3Customer name: George BarkerCustomer address: 29 Main StreetCity: Kansas CityState: MissouriZIP code: 23456Telephone: 919-999-8888Account balance: $23.14Date of last payment: Never

Press enter to continue…

Customer name: Warren BuffetCustomer address: UndisclosedCity: OmahaState: NebraskaZIP code: 12345Telephone: 282-414-9876Account balance: $99999.99Date of last payment: Yesterday

Press enter to continue…

1. Enter new account information2. Change account information3. Display all account information4. Exit the program

Enter your choice: 4

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published. Required fields are marked *