Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code: data in the form of fields, and

Object-oriented programming is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields, and code, in the form of procedures. A feature of objects is that an object's own procedures can access and often modify the data fields of itself.

/************************************

Please Answer This

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), NIC in (a string), deposit amount in (a double) and opening date of account in (a string) Then 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).

Then 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 bank Then 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 20000 rs the account type is current, if it is less than 20000 rs 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 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.

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. Please try to keep it as simple as possible
  • Code in Cpp *****************************************/

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

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

Recommended Textbook for

More Books

Students also viewed these Databases questions