Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write this program in C++ object oriented programming Question 1: Habib Bank Limited is a Pakistani multinational bank, Bank can open many types of accounts

write this program in C++ object oriented programming

Question 1:

Habib Bank Limited is a Pakistani multinational bank, Bank can open many types of accounts but most common are current and saving account,

Create a project of disk file I/O with Streams Classes which holds data of account holders.

Create parent/base class with any name that stores the account title in (a string), account number in (a string), CNIC in (a string), deposit amount in (a double) and opening date of account in (a string).

Create child / derive class with any name that store type of account is current in (a string) and minimum balance of 25,000 PKR in (a float).

Create child / derive class with any name that store type of account is saving in (a string) and interest rate in (a float), interest rate is 9.6% in 2020 according to Pakistan government for HBL.

Create a method/function that convert both account number and CNIC from string to unsigned long to store in disk file.

Create a method/function that check initial deposit is greater than or equal to 25,000 PKR the account type is current, if it is less than 25,000 PKR the account type is saving.

Write a main() program with ifstream object which loop throw prompt the user to enter data of account holders, and dont forget that strings terminated with a space or other whitespace character so set the prompt which receive characters till enter button is pressed. When the user indicates that no more account holders data will be entered, close the ifstream object. After that open an ofstream object, read and display all the data, if account holder holds current account just display data, if account holder holds saving account then display data with three months interest rate, per annum interest rate, and terminate the program.

For additional marks: open fstream object which store every account holders data with positive auto increment number in (unsigned short) and display it with account holders data,

Create method/function which prompt for account holders number or auto increment number, after entering that number user can modify account holders data and display with all data.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions