0% found this document useful (0 votes)
27 views3 pages

CONLIB Practicalexercisesaimresult 20230911130853

The document outlines 10 programming exercises from a C++ book, including programs to calculate gross salary, check student percentages, determine if a number is a palindrome, generate a Fibonacci series, insert/delete elements from an array, print matrix boundaries, define classes for publishers and employees, and create a class to store student details. For each exercise, the aim is stated followed by a result that the program was executed and the expected output was obtained.

Uploaded by

rmkathiresan6
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)
27 views3 pages

CONLIB Practicalexercisesaimresult 20230911130853

The document outlines 10 programming exercises from a C++ book, including programs to calculate gross salary, check student percentages, determine if a number is a palindrome, generate a Fibonacci series, insert/delete elements from an array, print matrix boundaries, define classes for publishers and employees, and create a class to store student details. For each exercise, the aim is stated followed by a result that the program was executed and the expected output was obtained.

Uploaded by

rmkathiresan6
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/ 3

1.

GROSS SALARY

Aim:
To write a C++ program to input basic salary of an employee and calculate its
Gross salary

Program: write the program from your book pg. no. 300

Output: Refer book pg. no. 301 (Must be in pencil)

Result:
The program in C++ to input basic salary of an employee and calculate its Gross
salary was executed and the desired result was obtained.

(Note: Follow the above pattern for the remaining exercises. Refer book for
Program and output for all the exercises.)

2.
PERCENTAGE

Aim :
To Write a C++ program to check percentage of a student and display the
division (distinction, first, second, third or fail) scored using switch case.

Result :
The program in C++ to check percentage of a student and display the division
(distinction, first, second, third or fail) scored using switch case was executed and
the desired result was obtained.

3.
PALINDROME
Aim:
To write a C++ program to enter any number and check whether the number is
palindrome or not using while loop.

Result:
The program in C++ to enter any number and check whether the number is
palindrome or not using while loop was executed and the result was obtained.
4.
NUMBER CONVERSION

Aim :
Write a menu based C++ program using do while loop

Result :
The menu based C++ program using do while loop was executed and the result
was obtained.

5.
FIBONACCI PRIME SERIES

Aim :
To write a C++ program using a user defined function to generate the Fibonacci
series till n terms and print if each term is prime or Composite.

Result :
The program in C++ using a user defined function to generate the Fibonacci
series till n terms and print if each term is prime or Composite was executed and
the result was obtained.

6.
INSERT / DELETE ELEMENTS IN AN ARRAY

Aim :
To write a menu driven C++ program to Insert and Delete elements in a single
dimension array of integers and print the array after insertion or deletion.

Result :
A menu driven C++ program to Insert and Delete elements in a single dimension
array of integers and print the array after insertion or deletion was executed and
the result was obtained.

7.
BOUNDARY ELEMENT OF A MATRIX

Aim :
To write a C++ program to print boundary elements of a matrix

Result :
The program in C++ to print boundary elements of a matrix was executed and
the result was obtained.

8.
ABC PUBLISHERS

Aim :
To write a C++ program to define a class named Publisher with the given
descriptions

Result:
The program in C++ to define a class named Publisher with the given
descriptions was executed and the result was obtained.

9.
EMPLOYEE DETAILS USING CLASS

Aim:
To write a C++ program to create a class employee with the given specifications.

Result :
The program in C++ to create a class employee with the given specifications was
executed and the result was obtained.

10.
STUDENT DETAILS
Aim:
To write a C++ program to create a class Student with the given details

Result :
The program in C++ to create a class Student with the given details was executed
and the result was obtained.

You might also like