Data Dictionary
Data Dictionary
In this research, I will talk about algorithms, their applications, and their importance in
application development. I'll also go over the general steps of developing an application, the
framework, the resources available, and the process from code to implementation. Several
programming languages, including the one I used to build the inventory management system,
will be explained. Finally, I'll put an application's design view into working order.
Table of contents
Definition of algorithms
Features
Benefits
Limitations
Examples
Data dictionary
A Data Dictionary is a collection of names, definitions, and attributes about data elements that
are being used or captured in a database, information system, or part of a research project. It
describes the meanings and purposes of data elements within the context of a project, and
provides guidance on interpretation, accepted meanings and representation. A Data Dictionary
also provides metadata about data elements. The metadata included in a Data Dictionary can
assist in defining the scope and characteristics of data elements, as well the rules for their usage
and application.
Pre-processor
Pre-processor falls during the time of building the programs. Which means it guide compiler to
perform pre-processing before the accomplishment of compilation. In C programming we write
the code #include<stdio.h> here '#include'< >' means the directive command for the pre-
processor where in the given gap we must write the header file. It is a program that process the
source code before it passes to the compiler. That’s why it is said that it is used during the time
of building the program since it comes before the execution of program.
Compiler
Interpreter
The role of compiler and interpreter is almost similar expect one feature. Compiler compiles all
the code at once and show the error if it is found then while interpreter interprets the code on
each line and show the error to the place where it have been found. It does not wait for the whole
code to be finished and to be interpreted. Moreover, it converts high level language to machine
understandable form, executes the line and then proceed with the next line.
Assembler
There are three types of languages generally in use which includes high level, low level and
assemble language. The program which converts the assembly language to machine level
language is known as assembler. So the time when the programmer writes the program in
assembly language then it is used so that it can convert them into object code and no problem is
created during execution.
Linker
Linker is a program which is used after the code has been transformed in the form of object code. The
required files and functions of the object code is linked by the help of linker so that it is prepared as
executable code. Linker gives error if the file or function that has to be linked does not exist. For
instance in the place of writing printf if we write print only then error is found since we do not have any
functions called print and so on.
Loader
After linker has completed its task of linking and preparing the final code its time of loader to work.
Loader is the part of operating system which is responsible for loading programs. It is the essential
stages in the process of starting a program since it places programs into memory and prepares for
execution. During loader also there is chances of having error. It is called run-time error.
Conclusion
In this task I have described about algorithm, its features, limitations, outline process to develop
any software, examples of algorithm, Flowcharts of the form of application we build, data
dictionary, steps from coding to execution.
Basic I/O
In any programming language input means to provide some data in program where as output
means to display the data in screen, file or printer. C programming language provides a set of
built in functions to read given input and provide it to the program as per requirement and also
provides a set of built in functions to output required data. Scanf() is the function which can be
used to read an input wher eprintf() is the mostly used functions for output . printf will grnerally
examine from left to right to the string. But scanf is a tool opposite of printf. The input is read,
interpret using the conversion specifier and stores it in the given variable.
Array
Array is a variable, which can hold and handle more than one value at a specific time. It can deal
with many values and number in the single name and can access access value by referring index
number. At the point when there is each item in an aeeay it is known as components or elements.
Also, it is accessed by numerical file. It is best practice to initialize an array to zero or null while
declaring, if we don’t assign any values to array.
File handling
File handling are frequently utilized excessively to read and compose the information form, text
files. File input stream and file output stream are mot prescribed to utilize on the off chance that
you need to read and compose the information data then these are called Byte stream classes.
Structure
For example: If I have to write a program to store Student information, which will have Student's
name, age, branch, permanent address, father's name etc, which included string values, integer
values etc, how can I use arrays for this problem, I will require something which can hold data of
different types together.
Conditionals
Conditional are statement which modify the generally direct execution stream of a program
depending upon the result Of expression, which test for the presence Of a specific "condition". It
performs distinctive calculations or activities relying upon whether a programmer determined
Boolean condition assesses to true or false. Conditional statement in C programming language
are if statement, if else statement, nested if else statement, switch statement and ternary
statement.
There are five types of conditional programming which are listed below:
I . If Statement.
2. If-else Statement.
5. Switch statement.
1.If statement
It is a powerful decision making statement which is used to control the flow of execution of
Statements. It allows the computer to evaluate the expression first and then depending on
Whether the value of the expression is true or false it transfers the control to a particular
statement.
It is the extended form of the simple if statement. If the test expression is true then the true block
statement immediately following if statement are executed otherwise the false block statement
are executed. Which means either true block or false- block will be executed not both.
3.If else if
It is the other way of putting ifs together when multipath decisions are involved. A multipath
decision is a chain of ifs in which the statement associated with each else is an if. This construct
is also known as else if ladder.
5.switch statement
It is the statement which tests the value of a given variable against a list of case values and when
match is found a bock of statement associated with the case is executed. (Balagurusamy, n.d.)
f) control structure
Control structure is a block of developers which pick the heading to go in view of parameters
and dissect the factors. Initials parameters and conditions are known as preconditions. It is the
gaze of factors before inflowing the control structure. For example: looping. Loops provide a
way to repeat commands and control how many times they are repeated. C provides a number of
looping way. C provides a number of looping way like while loop, for loop and do while loop.
l. for loop
2.while loop
4.Nested loop
1. for loop
It is the entry controlled loop that provides a more concise loop control structure. The general
form Of the for loop is
2.while loop
It is the simplest looping structures in C. The basic format of C statement is While (test
condition)
This loop tests its given condition at the bottom of the loop. It's almost like a while loop expect
one feature that it ensures to execute at least minimum one time, although the fact the starting
case of inner of while is initialized to be false. Its general form is
do
While (test-conditions)
4.Nested loop
Nested loop is the loop found within a loop. There are three types of nested loop which are as
follows:
G) Function
It is a set of statements which carry out task together. C functions can be classified into two
categories namely library function and user-defined function. Main is an example of user-
defined function while printf and scanfbelongs to the category of library functions. The main
distinction between these two types of function is that library functions are not required to be
written by us whereas a user-defined function has to be developed by the user at the time of
writing a program.
i) User-defined function
The function written by user is called user-defined function. There are two types of
user-defined functions.
Returning function
Non-returning Function
It is the data type of the value of the function that doesn't return.
ii)Library function
H) pointer
A pointer is a derived data type in C. It is built from one of the fundamental data types available
in C. Pointers contain memory addresses as their values. Since these memory addresses are the
location in the computer memory where program instructions and data are stored, pointers can be
used to access and manipulate data stored in the memory.
I)string
A string is a sequence of characters that is treated as single data item. Any group of characters
(except double quote sign) defined between double-quotation marks is a string constant.
Characters string are Often used to build meaningful and readable programs the common
operations performed on character strings include: Reading and writing strings
OOP is a type of computer programming in which programmers characterize not just the
information structure, yet in addition the type of operation that can be connected to the data
structure. Object oriented programing is the style of programming which is connected with the
thoughts of class, objects and a few of other data related with this two like encapsulation,
inheritance, and polymorphism.
Characteristics
A. Class
Lots of languages offer private data types like int , long, and float. Their data
representation and response to arithmetic, assignment and relational operator are defined
as the part of language. However, the language does not know user defined data types.
The programmers define its format and behavior by defining a class. A class can be
described as a set of sample objects. In different works, it’s a well-known call for all
comparable item statistics of programming language.
B. Data encapsulation
In object-oriented programming, binding of information and function into single class
type variable is called encapsulation. The number of member data and number functions
relies upon needs. The protection of the information from direct access by the program is
the way toward hiding Figueres and data.
C. Inheritance
In object oriented programming, inheritance is the idea that when a class of object is
characterized, any subclass that is characterized can acquire the meaning of a least in or
more general classes. This implies for the programmers that a object in a subclass require
not convey its own particular meaning of information and methods that are generic to the
class (or class) of which it is apart. This not just accelerates program improvement, it
additionally guarantees an inherent validity to the characterized subclass object. There are
different types of inheritance like single inheritance, multiple inheritance , multilevel
inheritance, hierarchical inheritance and hybrid inheritance.
In oop, we have 5 different types of inheritance:
1. Single Inheritance
In this type of inheritance one derived class inherits from only one base class. It is the most
2. Multiple Inheritance
In this type of inheritance a single derived class may inherit from two or more than two basc
classes.
3. Hierarchical Inheritance
In this type Of inheritance, multiple derived classes inherits from a single base class
4. Multilevel Inheritance
In this type Of inheritance the derived class inherits from a class, which in turn inherits from
some other class. The Super class for one, is sub class for the other.
D) Abstraction
Abstraction is an idea which encourages to extract out the basic data of an object. In OOP,
Abstraction Facilitates the simple conceptualization Of real world Objects into the software
program. It is the best approach to speak to the information in an applied level without any
details.
E) Polymorphism
The expression "poly" implies many and "morphs" implies forms. It relates various objects
using a similar technique and plays out the task. In this way, it has brought the element of
reusability. Real life example of polymorphism, a person at a same time can have different
characteristic. Like a man at a same time is a father, a husband, a employee. so a same person
posses have different behavior in different situations. This is called polymorphism. Function
overloading and operator overloading are the different polymorphish.
F. object: they are the basic unit of object orirnted programming. They are identified by its
unique name. An object represents a particular instance of a class. These can be emore than one
instance of an object. Each instance of an object can hold its own relevant data.
Limitations
. Object oriented programming are slower than other programming programs because of its
size. Increasingly the size the speed Of the projects isn't run rapidly so that program requests
more system so run the system quicker.
. It requires a lot of effort to create object-oriented program which is large in size because
programmer should spend more time in Writing code.
Event Driven Programming
Event Ioops
Event loops are the program which arc incorporated with the environment. It continues testing to
distinguish in the Case Of anything in the program.
Time driven
Event driven programming. time driven is a paradigm, it's a code that keeps running on a period trigger,
time driven can be a particular code that keeps running on a particular time, Which could be once per
hour. Once per week Or Once every month. this implies it's a pre-set to do task. For example, windows
refresh is the ease of time driven, which user can set when to refresh or when to check and download
the refresh.
forms
Form contains all the different controls Which the user permits to interface With the program in
different courses for example buttons, boxes and menus.
Flexibility, in each protest it has a decent selection Of occasions in Which the program can react to.
Programmers have control over place code and begin it.
Disadvantages or event driven paradigm
Relationship between Procedural Programming. Object Oriented Programming and Even driven
Programming
The procedural programming works step by step, approach top-bottom based concept relaying on
subroutines to perform instructions. While Object Oriented Programming is based on the concept Of
objects and data fields, approach bottom-up based forming the attributes and codes in a single unit.
Event-driven programming works on the occurrence of the event which the event handler specifies
what to do after the event has occurred. All three-programming paradigm is orthogonal, which means
they all can be used all together. In procedural programming, it is just the bunch of instructions,
where as in OOP, it is some blocks Of code defined to do the certain task. In event-driven
programming paradigm, it is also the blocks of code to do something after the event occurs. In
procedural programming, functions are given more priority but data are given more priority in OOP
paradigm. Unlike other paradigm, OOP needs deeper understanding before implementing it and even
though it is complex to under, it makes complex problem easier. But, in event-driven programming,
it is easy to implement this paradigm unlike the other paradigm and can be easily tracked the flow of
control. Procedural programming is only useful in back-end programming, event-driven in only
front-end programming or GUI designing but object-oriented programming paradigm is useful for
both front-end as well as back-end programming
introduction to IDE
IDE is the software or tools where the program written on algorithm form is applied. While
saying so it does not mean algorithm is mandatory in order to write any program on IDE. IDE
has been really fruitful for every developer or programmer since they do not require several tools
for writing a single program. Without IDE a developer must deploy, integrate, select and manage
all the tools separately. In general it is the platform where the design for building an application
and its coding is done in one place. While coding or writing any program on IDE it's somehow
obvious to face the problem Of bug.
Microsoft Visual Studio is a suite Of devices for making programming, from the planning Stage
through UI design, coding, testing, troubleshooting, analyzing code quality and execution,
conveying to clients, and gathering telemetry on utilization. These tools are designed to
cooperate as consistently as could reasonably be expected, and are altogether exposed through
the Visual Studio Integrated Development Environment (IDE).
You can utilize Visual Studio to make numerous type of application, from basic store
applications and games for versatile customers, to extensive, complex frameworks that power
enterprises and data center. You can make applications and games that run on Windows, as well
as Android and iOS, sites and web service based on ASP.NET, JQuery, AngularJS, and other
prevalent systems, applications for stages and gadgets as various as Azure, Office, Share point,
Hololens, Kinect, and Internet of Things, to give some examples cases, diversions and designs
serious applications for an assortment of Windows devices, including Xbox, utilizing DirectX.
The tools and features available here are supposed to help to organize resources,
Visual studio is an that the learning of system. O deco learning can utilized through open
architecture_ Visual tool leverages existing code C. C# there are various tools which are
1.testbox
content. This control has extra usefulness that isn't found in the standard Windows
text box control, including multiline altering and password character masking. A text
box is utilized to show text on a form or to get client input while a C# program is
2. button
3. Group box
In a Group Box different controls can be placed. When outlining user interface in
Windows Forms. you can utilize this control to make a square shape where you can
4. Combo BOX
C# controls are situated in the Toolbox Of the Visual Studio Which are utilize to make Objects
on form. A Combo Box shows a content box joined With a List Box, Which empowers the user
to choose things from the list or enter a new value.
5. label
Labels are C# control which are used frequently. We can utilize the Label control to show
message in a set area on the page. Label controls can be utilized to add descriptive text to a Form
to provide the user with supportive data.
Role of complier
A compiler is a program that processes statements written in a specific programming
language and transforms them into machine language or "code" that a PC's processor
uses. Its not true that the computer understand code. The computer understands only
machine code. A few programs come in both 32-bit and 64-bit variants, and those
utilizing a 32-bit working framework can't run 64-bit programs. Compilers transform the
code that the programmer composes into machine code.
Database connectivity option
You can create, fabricate, test and distribute your database from a source-controlled
undertaking, much the same as you build up your application code. Begin without any
preparation with another Database task or import a current database. You can use table
designer to design another table, change existing table, or rapidly include new or alter
existing columns, requirements and files. You don't have to compose the difficult code to
modify influenced indexes, views, procedures and functions. Visual Studio composes the
change content for you. It focuses on what your table ought to be. The most frequent task
done by programmer or developer is to view and edit the data in a table but yet it requires
queries to be written. But visual studio view and edit data in a tabular grid, filter the grid
using a simple UI and save changes to your database.
When we stop the application where you need it, Visual Studio offers numerous courses
for us to review the estimation of variable, to shape or check a theory. We can monitor a
value while venturing through our code; look at nearby variable and assess complex
expression without leaving the debugger,
Form builder
Form is a platform for user to interact with an application. Control is an individual object
which is added to the form for allowing interaction. Controls like textbox, combobox,
label and so on are added to the form by using toolbox. Toolbox can be accessed by
clicking on the Toolbox tab to the left of the Visual Studio main window. Controls are
dragged and dropped in the required location. The positioning of form is maintained and
size are adjusted. In this way forms are made in Visual Studi02013.
Window console
Windows Console is one of the first Windows NT GUI apps. and is one of the oldest
Windows apps in use. Windows console accept the inputs from keyboard. mouse, touch,
pen etc. It also translates input to relevant characters, Windows accept output from a
connected Command-Line app or tool. It helps to update the display as required. based on
the received output like output text. Move the cursor, Set text color etc. it handles the
system interaction like launching when requested, Manage resources, resizing like
minimizing maximizing and terminate when required.
.Net has the ability to work with a majority of databases. The most common being Oracle and
Microsoft SQL Server. But with every database, the logic behind working with all of them is
mostly the same. While working with databases, the following concepts which are common
across all databases.
1. Connection:
To work with the data in a database, the first step is the connection. The connection to a database
I normally consists of the below-mentioned parameters.
Database name is the first important parameters. Each connection can only work with one
database at a time.
Credentials:
'user name' and 'password' is the second important aspects. This is used to establish a connection
to the database.
Optional parameters:
We can specify optional parameters on how .net should handle the connection to the database.
For example, one can specify a parameter for how long the connection should stay active.
Conclusion
In this task I have described about procedural. object oriented and event driven paradigm. The
relationship and difference between them is also shown. Also I have analyze the common
features like visual studio tools, database connectivity options, Options available in solution
explorer and debugging option.
I. Start
3.Click login
4.1fusername or password is incorrect, display
6. Stop
1.Start
2.Click cancel
4.Stop
1.Start
5.Click save
7.Stop
Algorithm for save data
1.start
2.click new
4.Click save
6.Stop
1.Start
3.click update
5.Click Save
7.Stop
3.Click delete
5.Stop
1.Start
2.Click reset
4.Stop
1.Start
3.Click search
4.If validation true, Display the required information in Data Grid View
5.Stop
Part 3
Implementation of Application
This part includes all the application's code as well as a summary of the design, implementation,
and development process.
Every page created for the application's design and code views are presented here.