Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Kindly answer In C++ Santander Bank is a Spanish owned commercial bank in UK, Bank can open many types of accounts but most common are

image text in transcribed

Kindly answer In C++

Santander Bank is a Spanish owned commercial bank in UK, Bank can open many types of accounts but most common are current and saving accounts, Create a project of disk file 1/0 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), NIC 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 2000 pounds 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.4% in 2020 according to UK government for Santander bank. Create a method/function that convert both account number and NIC from string to unsigned long to store in disk file. Create a method/function that check initial deposit is greater than or equal to 2000 pounds the account type is current, if it is less than 2000 pounds 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 don't 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 holder's data will be entered, close the if stream 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 holder's data with positive auto increment number in (unsigned short) and display it with account holder's data, Create method/function which prompt for account holder's number or auto increment number, after entering that number user can modify account holder's 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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions