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

C++ Program CH 12 working with advanced file operations First you should design

ID: 3633708 • Letter: C

Question

C++ Program CH 12 working with advanced file operations

First you should design the function main, which call the other program function.
write a program 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 stored customer accounts 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.
-Searach 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
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote