Question: C++ project in Code::Blocks. use struct called Customer that consists of the following members: name of the customer, account number, date when the account was

C++ project in Code::Blocks. use struct called Customer that consists of the following members: name of the customer, account number, date when the account was created and balance. The account number must consist of the first 3 letters of the name of the customer followed by a randomly generated 4-digit number. Write a function called generateAccNumber() for this purpose. The function must receive the name of the customer as a parameter and return the account number as a string. The date member holds the date when the account has been created and must be of type Date. The type Date must be a struct with the members day, month and year - all of type integer. In the main function, declare an array to store a number of Customer structs. Provide for a maximum of 20 customers. In the main function, write code to read the information of a number of customers from the keyboard into the array of Customer structs. Use the function generateAccNumber() to generate the account number of each customer. Write a displayData() function to display a numbered list of all the information of the customers stored in the array. Write a displayNewAccounts() function to display a numbered list with the name, account number and balance of all the customers with accounts created in the year 2022. Call the display functions from the main function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!