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

Lab Assignment C++ by SKB On Apr 2024

The document outlines a C++ lab assignment consisting of various programming tasks. These tasks include creating programs for reference variables, Fibonacci series, prime number checking, leap year determination, factorial calculation, inline functions, linear search, 2D matrix operations, employee salary calculations, and class definitions for Student, Circle, SI, and Employee. Each task emphasizes different C++ concepts such as functions, recursion, pointers, and object-oriented programming.

Uploaded by

umesh kumawat
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)
13 views1 page

Lab Assignment C++ by SKB On Apr 2024

The document outlines a C++ lab assignment consisting of various programming tasks. These tasks include creating programs for reference variables, Fibonacci series, prime number checking, leap year determination, factorial calculation, inline functions, linear search, 2D matrix operations, employee salary calculations, and class definitions for Student, Circle, SI, and Employee. Each task emphasizes different C++ concepts such as functions, recursion, pointers, and object-oriented programming.

Uploaded by

umesh kumawat
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

C++ Lab Assignment-I

1. WAP in C++ to exhibits use of reference variable?


2. WAP in C++ for Fibonacci series?
3. WAP in C++ to find given number is prime or not?
4. WAP in C++ to find the given year is leap year or not? (using function with arguments
with return type )
5. WAP in C++ to find the factorial of any number by using recursive function?
6. To find greatest among 3 number using Inline function (using ternary operator)?
7. WAP in C++ for liner search?
8. WAP in C++ to find the sum of diagonal in 2D-matrix?
9. WAP in C++ to calculate the employee gross salary using structure in C++?
10. WAP in C++ to perform all arithmetic operation on 2 variable using pointer?
11. WAP in C++ for exhibits call by reference concept?
12. WAP in C++ to read and display the value in an array using pointer?
13. WAP to create a class Student. Define its various members like roll number, marks in 3
subjects etc. Calculate percentage. Create its objects and use its function on the objects.
14. Write a C++ program to read the data of N employee and compute the net salary of each
employee (DA=52% of basic and HRA=30% of basic)
15. WAP to create a class Circle. Calculate circumference. Use the default constructor to
initialize the value of PI.
16. WAP to create a class SI. Calculate Simple Interest. Use the parameterized constructor to
initialize the rate of interest.
17. WAP to create a class employee. Define its various members like salary, product
quantity, selling price, total sale, commission. Gross salary must include salary + 20% of
total sale as commission. Create three salesman objects and one manager. Manager ‘s
gross salary is sum of his salary and 10% of total selling by salesmen.

You might also like