![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2008
Posts: 2
OS: XP
|
I want to require a .cpp file of this C++ program.
Create a class in C++ name Account with the following Data members
• AcNumber • AcHolderName • AcBalance • Actype • AcMinBalance And the following member Functions Identifier Return type Parameters CreateNewAccount Boolean Integer AcNumber, StringAcHolderName, String AcType, Long Deposit ShowAcInfo void void (No parameters ) ShowAcInfo void String InfoType In the CreateNewAccount member function the Deposit parameter must be assigned to the AcBalance field and others to their respective fields. Depending on the AcType value,the AcMinBalance field must be set. The following table provides us the required information AcType Value MinBalance Savings 10000 Current 25000 If the deposit is less than MinBalance then the method must exit returning bolean value False or True. Note that there are two ShowAcInfo() methods .The first one accepts no parameters,while the second takes in a string parameter (overloaded). ShowAcInfo() that’s takes in no parameters print all the field values except the AcMinBalance field ,to the user’s console(screen). The second ShowAcInfo() method takes in one string parameter (InfoType).This parameter must have one of the following values. InfoType Should Display ShortInfo AcNumber,AcBalance LongInfo All data members of the object Additionally the class must also have • Default constructor, which must set AcType to “Savings” and AcMinBalance to 10000. • Parameterized constructor which takes in all the fields as parameters and assigns them to their respective fields • Set and Get functions for all data members of class • Destructor with no implementation (leave body of destructor empty) In main function create object of Account class and create a new account by calling CreateNewAccount function for that object. If new account not created successfully then display a message on screen “Your account cannot be opened”. If new account created successfully then sample outputs are given below: Sample Output 1: Your Account has been opened successfully. Enter ‘L’ for Long information of your Account. Enter ‘S’ for Short information of your Account. L Account Number : 1 Account Holder Name: Ahmer Waqas Account Balance : 15000 Account Type : Saving Sample Output 2: Your Account has been opened successfully Enter ‘L’ for Long information of your Account. Enter ‘S’ for Short information of your Account. S Account Number : 1 Account Balance : 15000 |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
TSF Enthusiast
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.
|
Re: I want to require a .cpp file of this C++ program.
@ ali_humza: Welcome to TSF!
I'm sorry to tell you, but we are here to help, not to do work for you. If you have a specific question you can ask it, and we'll help.
__________________
KoosHopeloos, straight to you from .nl via the world wide web! ![]() |
|
|
|
![]() |
| Thread Tools | |
|
|