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

List of Programs Using Classes:: Data Members

The document lists 10 programming tasks involving classes in C++. The tasks include: 1) Displaying name, branch, and year on separate lines. 2) A menu-driven program to convert integers to binary, octal, and hexadecimal. 3) A menu-driven program to perform basic arithmetic operations. 4) A program to display a student mark sheet using a class. 5) A class to store and display an employee's name and age.

Uploaded by

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

List of Programs Using Classes:: Data Members

The document lists 10 programming tasks involving classes in C++. The tasks include: 1) Displaying name, branch, and year on separate lines. 2) A menu-driven program to convert integers to binary, octal, and hexadecimal. 3) A menu-driven program to perform basic arithmetic operations. 4) A program to display a student mark sheet using a class. 5) A class to store and display an employee's name and age.

Uploaded by

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

List of programs using classes:

1. Write a program in C++ to display your name, Branch, Year on to the computer
screen. All information should be displayed in the separate line.
2. Write a menu driven program in C++ to receive integer number and
convert equivalent binary, octal, hexadecimal number.
3. Write a menu driven program in C++ to perform all basic arithmetic operation
addition, subtraction, multiplication, and division of two given values using
function and switch case. Program receives two values and required operation
to be performed from the keyboard and display particular result of the required
operation.
4. Write a program in C++ to display mark sheet. Of the student. Define a class that
contains data members to store student information line name, Branch, semester,
marks in 6 different subjects, etc. Declare some member functions to get these
information from the key board, to calculate result and to display all gathered
information on to the computer screen in proper format.
5. Define a class employee. Include the following members:
Data Members:
a. Name of the employee
b. Age of the employee
Member Functions:

a. To get the name and age of the employee

b. To display the name and age of the employee.

9. Define a class BankAccount to represent a bank account. Include the


Following members:

Data Members:

1. Name of the depositor

2. Account Number

3. Type of account

4. Balance amount in the account

Member Functions:

1. To assign initial value


2. To deposit an amount
3. To withdraw an amount after checking
10. Define a class employee having data members as emp_code,
dept_code, age, basic, DA, HRA and three member functions as getdata(),
putdata(), calculatesalary() to get, display all the values of data members and
calculate the total salary by adding basic, DA, HRA.
Write this program for 10(ten) employees using an array of objects. */

You might also like