0% found this document useful (0 votes)
1 views1 page

Approach

The document outlines a C++ program that implements basic concepts such as classes, access modifiers, and data types. It includes functionalities for setting and displaying values, depositing and withdrawing money, and showing account balance, all managed through a switch case in the main function. The program allows users to make choices in an infinite loop for continuous interaction.

Uploaded by

kiaankhotkar123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views1 page

Approach

The document outlines a C++ program that implements basic concepts such as classes, access modifiers, and data types. It includes functionalities for setting and displaying values, depositing and withdrawing money, and showing account balance, all managed through a switch case in the main function. The program allows users to make choices in an infinite loop for continuous interaction.

Uploaded by

kiaankhotkar123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Approach: This program uses basic concepts of class, Access

Modifiers in C++, data types, variables, Switch Case, etc. Below are
the functionalities that are to be implemented:
 setvalue(): This function is used here to set the data using
basic input and output method in C++ i.e., cout and cin
statements which display and take input from the keyboard
i.e., from the user respectively.
 showvalue(): This function is used to print the data.
 deposit(): This function helps to deposit money in a
particular account.
 showbal(): This function shows the total balance available
after deposition.
 withdrawl(): This function helps to withdraw money from
the account.
 main(): In this function, there is a simple switch case (to
make choices) inside an infinite while loop so that every
time user gets to select choices.

You might also like