Write a C++ program (in OOP) with the following details: A class called BankAccount, that will act as a bank account. It
Posted: Mon May 09, 2022 6:00 am
Write a C++ program (in OOP) with the following details: A class called BankAccount, that will act as a bank account. It contains the following: . Two private data members: account number (int) and account balance (double), which maintains the current account balance. • A Public functions account_credito), task is to add the given amount from the balance • A Public functions account_debito, task is to subtract the given amount from the balance and print "amount withdrawn exceeds the current balance!" if amount is more than account balance. • A public function print_funco, which shall print "Account no: xxx Balance=xxx" (e.g., Account no: 99055 Balance=P88.88), with account balance rounded to two decimal places. Also, add feature in the program that will ask the user to repeat or not the execution of the program.