Posts

Showing posts from 2021

DATA MODEL

Image
 DATA MODEL It is a conceptual tools which describe logical design of a database. It define entity definations, relationship and symmentic properties of intigrity constant. The very first data model could be flat data-models, where all the data used are to be kept in the same plane. Earlier data models were not so scientific, hence they were prone to introduce lots of duplication and update anomalies.  While the  Relational Model  is the most widely used database model, there are other models too: Hierarchical Model Network Model Entity-relationship Model Relational Model Hierarchical Model This database model organises data into a tree-like-structure, with a single root, to which all the other data is linked. The heirarchy starts from the  Root  data, and expands like a tree, adding child nodes to the parent nodes. In this model, a child node will only have a single parent node. This model efficiently describes many real-world relationships like index of a...

ENTITY In DBMS

Image
  ENTITY  An entity is a object which differenciate from another object in the real world. For eg:  employee,customer,doctor,patient all those are entity. Entity is a set of attribute.Attribute is a field which describe the description property of entity. A set of some type of entity is called  entity set. ROLE OF DBMS One of the main reason for having DBMS is to have control of both data and program execessing that data.The DBMS as a person or program having such control over thr system. The main role of DBA: 1.Schema defination The creation of the original database schema by writting a set of defination which are translated by the DDL compilar(Data Defination Language) to a set of table that are permanently stored in the data dictonary. 2.Storage Structure and access method defination. The creation of appropriate and excess method by writting a set of definitions which are translated by the data storage and defination language compiler. 3.Schema and Physical organi...

DBMS

Image
  DBMS (Database Management System) DBMS stands for Database Management System. We can break it like this DBMS=Database+ Management System. Database is a collection of data and management system is a set of programs to store abd retrieve those data. Based on this we can define DBMS like this: DBMS is a collection of inter-releted data and set of programs to store and access those data in an easy and effective those data in an easy and effective manner. The main characteristics of database system: 1.It provide to create, modify and remove the database. 2.To store new information, to change (update) existing information and remove(delete) information. 3.It provides data manipulation using mathematical and logical operator. 4.It provides to generate various report(permanentiy)/adhoc(temporary). 5.It provide data integrity. What is the need of DBMS? Database Systems are basically developed for large amount of data.When dealing with huge amount of data, there are two things that require...

C++ Inheritance

 Inheritance Inheritance is the mechanism in which new class adopt the properties of the old class. It is the capability of a class to derive properties and characteristics from another class. Inheritance is one of the most important feature of object oriented programming. The derive class inherited the features of the base class and can have additional features of its own.  Inheritance is an "is a" relationship. We use Inheritance only if an is a relationship is present between two classes. Here, are some examples- A car is a vehicle. Car----derive class Vehicle----base class The main advantages of inheritances are code reusability and readability when child class inherit the properties of functionality of parent class, we need not to write the properties of functionality of parent class, we need not to write the same code again in child class.

C++ class

  C++ Class Definitions A class has a class name, a set of attributes (data members and characteristics) and a set of actions or services. Class is an explicit datatype. The class specified the type and scope of variables and functions declared inside the class. The variables declared inside the class are known inside the class are known as data member or menber variables and the functions are called member functions. The body of the class is enclosed within braces and terminated by the semicolon. The keyboards private, public and protected are known as visibility levels, which defines the visibility of member.    A C++ class is like a blueprint for an object. A Class is a user defined data-type which has data members and member functions. Data members are the data variables and member functions are the functions used to manipulate these variables and together these data members and member functions defines the properties and behavior of the objects in a Class. In the abo...

History of C++

Image
HISTORY History of  C++ language is interesting to know. Here we are going to discuss brief history of C++ language. C++ programming language  was developed in 1980 by Bjarne Stroustrup at bell laboratories of AT&T (American Telephone & Telegraph), located in U.S.A. Bjarne Stroustrup  is known as the  founder of C++ language.                   SOME FACTS ABOUT C++ 1.C++ development began in 1979, four years before its release, and it did not start with the name C++; Its first name was  C with classes . 2.In the late part of 1983, C with Classes was first used for AT&T's internal programming needs. 3.Its name was changed to C++ later in the same year. 4.C++ was not released commercially until the late part of 1985. C++ implements  data abstraction  using a concept called  classes , along with other features to allow  object-oriented programming  and is considered a  high-level ...

Database system

  Database System A database system is a collection of data which fulfill the user requirement or solve the purpose for various user in a particular applications. The main characteristics of database system- It is integrated and it is shareable. The basic function or database system or facilities are: (1). It provide to create, modify and remove the database. (2). To store new information, to change (update) existing information  and remove (delete) information. (3). It provides data manipulation using mathematical and logical operator. (4). It provides to generate various report (permanently)/ adhoc (temporary). (5). It provides data integrity.

Standard Library And Header Files

 Standard Library                   And         Header Files The C++ language contains some statements only and not any built-in function. Rather, it provides standard library that contains files storing the standard functions (I/O functions, mathematical functions, string functions, character functions etc.). These files are known as Header files. Header files provide function prototypes, definitions of library functions, declarations of data types and constants used with the library functions. There are lots of header files in C++ standard library. A few of them have been listed below. 1. stdio.h This header file defines types and macros needed for the standard I/O package. 2. string.h This header file declares various string manipulation and memory manipulation routines. 3. math.h This header file declares various math functions and math error handlers. 4. stdlib.h This header file declares several common...

Program on c++

                              Programs on C++ Program  to input characters and change their case (From uppercase to lowercase or vice-versa). # include<iostream.h> #include<stdio.h> int main() { char ch; do { cout<<"Enter a character:"; ch=getchar(); if(ch=='\n') ch=getchar(); cout<<endl; if(ch>=65&&ch<=90) ch=ch+32; else if(ch>=97&&ch<=122) ch=ch-32; putchar(ch); cout<<endl; } while(ch!='0'); return 0; } Output: Enter a character : R       r Enter a character : a      A Enter a character : 0     0 Program to read a string and print its length. #include<stdio.h> #include<string.h> #include<iostream.h> int main() { char astr[51]; int lenght; cout<<"\nEnter a string (max 50characters)\n"; gets(astr); length=strlen(astr); puts(astr); cout<<"\nThe lenght of the string is:"<<length...

C++

Image
  History of C++ The c++ language was developed at AT &T Bell Laboratories in the early 1980s by Bjarne Stroustrup. The name C++ (pronounced C pluss plus) was coined by Risk Mascitti where "++" is the C increment operator. The major reason behind the success and popularity of C++ is that it supports the object oriented technology, the latest in the software development and the most near to the real world. C++ Basics.      This section talks about C++ building blocks, character set, variables, constans, basic input-output statement, decision statement, iteration statement etc. C++ Character Set A character set is a set of valid characters that a language can recognise. A character represents any letters, digit, or any other sign. C++ has the following character set: Letters                          A-Z, a-z Digits.                        ...