Question

Write a C++ program to create class named Account to perform basic operations on a saving bank account. Make necessary assumptions wherever required.

25 Nov 2017
Answer :
Word Count : 220

#include<iostream.h>

#include<conio.h>

#include<string.h>

class account

{

public:

int ac;

char type;

char cname[20];

float bal,d,w;

account(int a,char b[],float c)

{

ac=a;

strcpy(cname,b);

bal=c;

}

void deposit();

void widthdraw();

void disp();

};

class saving:public account

{

int rate;

char type;

public:

saving(int x, char y[],float z, char

_____ ______ ________ _______ ___ _________ __________ ________ ___ __________ ___.
________ ______ _________ ________ _____ ________ ______ ____.
________ _________ ________ _________ ___ ___ _________.
_________ ___ ______ ____ ___ _____ _____ ____ ________.
_______ ______ ______ __________ ________ _____ ____ _________ _____ _____ _______.
____ _________ ___ ________ _______.
_______ ___ __________ _______ ____ __________ ______.
_______ _____ _________ _______ ___ ______ _________.
______ ____ ____ __________ _______ ________ ______ ______ _____ ________.
_____ ________ ____ _______ ______ __________ ______ ___.
______ ______ ______ ____ ________ ________ _____ ______ __________.
____ ___ ________ ___ _______ ___ ________ ______ _______.
______ __________ ______ _____ _______ _________ ___ ___ _________ __________ ___.
___ ___ _______ ______ ________ _________.
_____ ________ ____ _______ _____ ________ _______ _________ ___ ____ ____ ________.
__________ ________ ____ ___ _________.
____ ________ ____ _______ ____ ______ _________ _________ __________ ___.
_______ ________ ___ __________ ___ _______ ____ _______ _______.
________ ______ ______ _______ __________.
_____ ________ __________ _____ __________ ____ ____ ________ ____ _________ _________ _____.
_______ ________ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU BCSL 32 2016 - Write a C++ program to create class named Account to perform basic ope | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→