Here we give all the list of programs which is following JAWAHARLAL NAHRU TECHNOLOGICAL UNIVERSITY, KAKINADA’s R16 Syllabus.
Here we provide Little Bit Introduction and SOURCE CODE for each and every program.
Exercise – 1 (Basics)
Write a Simple Program on printing “Hello World” and “Hello Name” where name is the input from the user.
Exercise – 2 (Expressions Control Flow)
a) Write a Program that computes the simple interest and compound interest payable on principal amount (in Rs.) of loan borrowed by the customer from a bank for a given period of time (in years) at specific rate of interest. Further determine whether the bank will benefit by charging simple interest or compound interest.
b) Write a Program to calculate the fare for the passengers traveling in a bus. When a Passenger enters the bus, the conductor asks “What distance will you travel?” On knowing distance from passenger (as an approximate integer), the conductor mentions the fare to the passenger according to following criteria.
Exercise – 3 (Variables, Scope, Allocation)
b) Write a program to illustrate scope resolution, new and delete Operators. (Dynamic Memory Allocation).
Exercises –4 (Functions)
Write a program illustrating Inline Functions.
Exercise -5 (Functions –Exercise Continued)
a) Write a program to illustrate function overloading. Write 2 overloading functions for adding two numbers.
Exercise -6 (Classes Objects)
Create a Distance class with:
- Feet and inches as data members.
- Member function to input distance.
- Member function to output distance.
- Member function to add two distance objects.
a) Write a main function to create objects of DISTANCE class. Input two distances and output the sum.
b) Write a C++ Program to illustrate the use of Constructors and Destructors (use the above program).
c) Write a program for illustrating function overloading in adding the distance between objects (use the above problem).
Exercise – 7 (Access)
Write a program for illustrating Access Specifiers public, private, protected
Exercise -8 (Operator Overloading)
a) Write a program to Overload Unary, and Binary Operators as Member Function, and Non Member Function.
Exercise -9 (Inheritance)
- Single Inheritance.
- Hierarchical Inheritance.
- Multiple Inheritances.
- Multi-level inheritance.
- Hybrid inheritance.