C++

Classes and Objects

Classes and Objects Classes and Objects: Class is a user defined data type just like Structures, but with the difference. It also has 3 sections namely 1.       private, 2.       public and 3.       protected. Using these, access to member variable of a class can be strictly controlled. public  : variable and functions are accessible to any […]

C++

Inline function in c++

INLINE FUNCTION INLINE FUNCTION: The inline function is the concept used commonly with classes. When the function is inline, the compiler places a copy of the code of that function at each point. Conditions for the Inline function:          Inline functions should not contain any loops, recursion. –            The inline function is only applicable for […]

Java

Java program to compute employee’s net salary,HRA,DA and GS

In this article let’s learn how to calculate the net salary of an employee by considering the parameters called HRA(House rent allowance),DA(Dearness allowance),GS (Gross salary)and income tax. Let us assume some parameters.HRA=10% of basic salaryDA=73% of basic salaryGS=basic salary+DA+HRAIncome tax=30% of gross salarynet salary= GS-income tax Algorithm:1)Start2)Take the input from the user as employee name,id […]

Java

Introduction of classes and objects in java.Program to take the input as student name,roll number and display in different class.

Hi guys in this article let’s learn about class.You might be thinking that you use class in every single program but don’t know what is class so let’s start.Hope you’ll enjoy it 🙂  Class is the core of Java.Each every single thing in java is referred as object and class. To understand the concept of […]

8051

8051 itimer interrupt program to display value of ‘Y’ at P0 and ‘n’ at P2. Also generate square wave of 10 KHz at P2^0 with timer0 in interrupt mode.Using [email protected]

I have explained the calculations for the timer in my previous post.please have a look . CODE: