[go: up one dir, main page]

0% found this document useful (0 votes)
4 views23 pages

Oops Prac

The document outlines an assignment for a C++ and Java programming course, detailing 30 tasks to be completed by students. The tasks include writing programs for various concepts such as leap year calculation, function overloading, inheritance, exception handling, and multithreading. Each task is assigned a specific due date, primarily in early 2025.

Uploaded by

juliegayari22
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)
4 views23 pages

Oops Prac

The document outlines an assignment for a C++ and Java programming course, detailing 30 tasks to be completed by students. The tasks include writing programs for various concepts such as leap year calculation, function overloading, inheritance, exception handling, and multithreading. Each task is assigned a specific due date, primarily in early 2025.

Uploaded by

juliegayari22
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/ 23

ASSIGNMENT

BIT-204
OBJECT ORIENTED PROGRAMMING

SEMESTER- 4th
B.TECH ECE-AI-1

SUBMITTED TO: NAME: JULIE GAYARI


DR. JYOTI SHOKEEN ROLL NO.- 04801182023
INDEX
S.NO. Description DATE
1. A C++ program to find whether a given year is 14-01-2025
a leap year or not.
2. A C++ program to accept a coordinate point in 14-01-2025
in x-y coordinate system and determine in
which quadrant the coordinate point lies in.
3. A C++ program to read roll no., name, marks 14-01-2025
of 3 subjects and calculate total percentage
and division with grade.
4. A C++ program to display the N terms of odd 14-01-2025
natural no. and theirv sum.
5. A C++ program to print a set of prime 21-01-2025
numbers from 1 to 30 using continue.
6. Write a C++ program to perform function 21-01-2025
overloading.
7. Design a single C++ program to illustrate 21-01-2025
following concept of inheritance:
- public derivation
- private derivation
- protected derivation
8. Write a program in C++ to use scope 21-01-2025
resolution operator.
9. Write a program in C++ to print right angled 28-01-2025
triangle pyramid with '*'.
10. Write a C++ program to print an inverted right 28-01-2025
angled triangle pyramid with '*'.
11. Write a C++ program to print a right-angled 28-01-2025
triangle pyramid using numbers.
12. Design a basic calculator with basic 28-01-2025
mathematical operations using switch
statement in C++.
13. Check whether a given number is even or odd 28-01-2025
using ‘goto’ in C++.
14. Write a program in C++to illustrate the use of: 11-02-2025
- inline function
- function with default arguments
15. Write a program in C++ to read an employee's 11-02-2025
info from the user and print the same.
Employee info includes employee ID using int,
employee name using string, employee salary
using class and object.
16. Write a program in C++ to illustrate the use of 11-02-2025
friend function.
17. Use friend function to compare the speed of 11-02-2025
car object and truck object. Declare the
function as friend of both classes in C++.
18. Write a program in C++ to swap two numbers 18-02-2025
using- a) Call by value b) Call by reference c)
Call by reference without pointer.
19. Write a program in C++ to demonstrate 18-02-2025
operator overloading using the '+' operator to
add two complex numbers.
20. Write a program in C++ to demonstrate both 18-02-2025
static and non-static members within a class.
21. Write a program in C++ to demonstrate the 18-02-2025
concept of virtual function.
22. Write a program to illustrate the use of try, 18-02-2025
catch and throw blocks (exception handling)
in C++.
23. Write a basic program in java to implement 25-03-2025
class and object.
24. Write a program in java to demonstrate the 25-03-2025
use of 'instanceof' keyword.
25. Write a program in java to demonstrate the 3 25-03-2025
uses of super keyword:
- to access parent
class instance
variables.
- to invoke parent
class method.
- to invoke parent
class constructor.
26. Write a java program to illustrate the use of 01-04-2025
abstract class.
27. Write a java program to illustrate the 01-04-2025
use of 'interface'.
28. Write a Java program that demonstrates the 08-04-2025
use of the final keyword.
29. Write a Java program to implement 08-04-2025
Multithreading Using the Runnable Interface.
30. Write a Java program that demonstrates the 08-04-2025
use of exception handling mechanisms such
as try, catch, finally, and throw to handle
runtime errors effectively.
1. Program to find whether a given year is a leap year or not.

2. To accept a coordinate point in in x-y coordinate system and


determine in which quadrant the coordinate point lies in.
3. to read roll no., name, marks of 3 subjects and calculate total
percentage and division with grade
4.to display the N terms of odd natural no. and their sum.

5. to print a set of prime numbers from 1 to 30 using continue


6. to perform function overloading.

7. to illustrate following concept of inheritance - public derivation-


private derivation - protected derivation
8. to use scope resolution operator.

9. to print right angled triangle pyramid with '*'


10. to print an inverted right angled triangle pyramid with '*'

11. to print a right-angled triangle pyramid using numbers.

12. basic calculator with basic mathematical operations using


switch statement in C++.
13. a given number is even or odd using ‘goto’ in C++

14. to illustrate the use of:- inline function - function with


default arguments
15. to read an employee's info from the user and print the
same. Employee info includes employee ID using int, employee
name using string, employee salary using class and object
16. to illustrate the use of friend function.

17. to compare the speed of car object and truck object.


Declare the function as friend of both classes in C++.
18. to swap two numbers using- a) Call by value b) Call by
reference c) Call by reference without pointer.
19. to demonstrate operator overloading using the '+'
operator to add two complex numbers
20. to demonstrate both static and non-static members within
a class
21. to demonstrate the concept of virtual function

22. to illustrate the use of try, catch and throw blocks


(exception handling) in C++.
23. Java program to implement class and object.

24. to demonstrate the use of 'instanceof' keyword.


25. to demonstrate the 3 uses of super keyword:
to illustrate the use of abstract class.
26. to illustrate the use of abstract class.
27. to illustrate the use of 'interface'.
28. that demonstrates the use of the final keyword.

29. to implement Multithreading Using the


Runnable Interface
30. demonstrates the use of exception handling mechanisms
such as try, catch, finally, and throw to handle runtime
errors effectively

You might also like