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_credit(), task is to add the given amount from the balance
A Public functions account_debit(), 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_func(), 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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.