Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to write a C++ program using DEV C++ that uses a structure to store the f

ID: 3633641 • Letter: I

Question

I need to write a C++ program using DEV C++ that uses a structure to store the following data about a customer account:
NAME
ADDRESS
CITY, STATE, AND ZIP
TELEPHONE NUMBER
ACCOUNT BALANCE
DATE OF LAST PAYMENT

The structure should be used to store customer account records in a file. The program should have a menu that lets the user perform the following operations:

• Enter new records into the file.
• Search for a particular customer’s record and display it.
• Search for a particular customer’s record and delete it.
• Search for a particular customer’s record and change it.
• Display the contents of the entire file.

Input Validation: 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.

Explanation / Answer

#include #include using namespace std; void Acc(string , int, int AcArray[]); void Load(string, string, int AcArray[]); void Display(int AcArray[]); void menu(); double CBalance(int AcArray[]); void question(); struct account { char name[30]; //customer name char address[30]; // address char city[16]; //city char state[2]; // State two letters char zip[5]; // zip 5 numbers char tele[12]; // telephone number 12 characters double account; // account total char date[20]; // date int total[30]; // total array length }; int main(int argc, char *argv[]) { int AcArray[30]; //menu; system("PAUSE"); return EXIT_SUCCESS; } void menu { int choice; cout