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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 01-21-2008, 11:43 PM   #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
ali_humza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 01-21-2008, 11:48 PM   #2 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 2
OS: XP


Re: I want to require a .cpp file of this C++ program.

Dear Sir,

Please reply me the answer of this Program as early as possible.


Thanks.
ali_humza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-23-2008, 01:31 AM   #3 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
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!

KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:03 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85