Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

write code in oop in c++ Instruction: Write a program (code) for following given project and upload main.cpp file before the deadline at your MS

image text in transcribed

write code in oop in c++

Instruction: Write a program (code) for following given project and upload main.cpp file before the deadline at your MS team portal. Don't forget to write your name and enrolment number at top of your main.cpp file in comments. Caution: from following if any condition is similar with another student you will get zero marks. Same number of lines in code. Same number of words in code. Same number of characters in code. Same number of lines in output. Same number of words in output. Same number of characters in output. Control flow in a same direction. Project: 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 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 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 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 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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students explore these related Databases questions