Question: est 3-Practical . Write a C++ program, that includes a class accountDetails. The class should be implemented as a he the follow name, account number,
est 3-Practical . Write a C++ program, that includes a class accountDetails. The class should be implemented as a he the follow name, account number, bank where the account is being held, type of balance. Your class definition should include the following functions ated from this class should be able to perform account like, the account holders ing operations. It should be able to store the details of a customers being held, type of account (current or savings) a. A default constructor to initialize the members of the class. b. A constructor that initializes every account detail to values pr c. A function setDetails, that sets the account details to values pr d. A function that displays the current account balance e. A function to display the account holder's name f. A function to display the account number g. A value-returning function Low provided during the object creation. provided by the user Balance, that returns true if the current balance falls below 200, and false otherwise A function that returns the account holder's name if it is a current a A function that returns the account holder's name if it is a savings account A function that takes in the name of a bank as input from the user, and returns the holder if, their account belongs to that bank. ccount h. i. j. name of the account In the source code file, include the class appropriately, and perform the following operations Create a single object of the class to test the constructor in function b) above Create an array with 20 components as objects of the class. This array will manage the account details 20 customers. Write a function that reads from a file into variables and uses the function in c) above to populate the array of objects (hint: loop needed) Download input file from blackboard Write a function that prints the name of every customer who has an account with Capital One Write a function that prints the name of every customer who holds a savings account Write a function that prints the name and current balance of every customer who does not have a low account balance. (Low account balance being below 200) Write a function to print the name, account number and account balance of every customer with a current account
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
