Building Your First Project in Visual Basic – Math Calculator – Chapter 3 – Visual Basic

Chapter 3

Build your first project on VB6. – Math Calculator

Includes:

  1. Deciding what the application will do and its working
  2. Starting Visual Basic 6
  3. Designing the User Interface
  4. Programming the Math Calculator
  5. Math Operations

Before doing any project you (programmer) have to collect some ideas, and methods how you are going to make that project complete in a short time period with less bugs and thus obtained output is user friendly. There is a model called SDLC (System Development Life Cycle) which describes the concept of programming or software development in a systematic or step by step model. I will try to describe our first project in concept of SDLC. There are somewhat like seven steps in SDLC in detail but you can also make it yourself in your comfort – shorter or lengthen). (more…)


Introduction to Visual Basic – Chapter 2 – Visual Basic

Introduction to Visual Basic 

Includes:

  1. What is Visual Basic?
  2. Structure of Visual Basic Application
  3. The state of Visual Basic Application

 

What is Visual Basic?

Visual Basic is a Visual programming tool that allows you to develop Windows (Graphic User Interface – GUI) and browser based applications.  These applications have a simple user interface and are easier for user to use. (more…)


C Program implementing Lagrange Interpolation Formula (Numerical Computing)

In numerical analysis, Lagrange polynomials are used for polynomial interpolation. For a given set of distinct points Xi and numbers Yi, the Lagrange polynomial is the polynomial of the least degree that at each point Xj assumes the corresponding value Yj (i.e. the functions coincide at each point). The interpolating polynomial of the least degree is unique, however, and it is therefore more appropriate to speak of “the Lagrange form” of that unique polynomial rather than “the Lagrange interpolation polynomial”, since the same polynomial can be arrived at through multiple methods.

The Lagrange interpolating polynomial is the polynomial P(X) of degree <=(n – 1) that passes through the n points (x1, y1 = f(x1)),(x2, y2 = f(x2)) ,.., (xn, yn = f(xn)), , and is given by (more…)


Basic Understanding of Java Programming Language

Java programming language was invented for two fundamental reasons:

  • to adapt the changing environments and used and
  • to implement improvements in the art of programming

Firstly it was called OAK and was designed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank and Mike Sheridan at Sun Microsystems in 1991. Java is not the “Internet version of C++”. Java was not designed to replace C++, but to solve a different set of problems. Java is now used to create web pages with dynamic and interactive  content, to develop large-scale enterprise applications, to enhance the functionality of world wide web servers, to provide apps for consumer devices and so on.

Java is purely object-oriented programming language. To understand more about Object Oriented Programming Structures, see our previous article on Object Oriented Programming – Theory and Examples. (more…)


How do we begin to construct Data Flow Diagrams (DFDs)?

A data flow diagram (DFD) is a graphical representation of the “flow” of data through an information system, modeling its process aspects. A DFD is often used as a preliminary step to create an overview of the system, which can later be elaborated.

Data flow diagram is a popular way to visualize the major steps and data involved in software system processes. This is not the same as business process modeling; DFDs were usually used to show data flows in a computer system, although they could in theory be applied to business process modeling. DFDs were useful to document the major data flow or to explore a new high-level design in terms of data flow. (more…)


C Program implementing the Bisection Method ( Numerical Computing )

First read Bisection Method Algorithm and Flowchart [Numerical Computing]

Method 1:
This program in C is used to demonstrate bisection method.

Bisection method is one of the many root finding methods.
In this method we are given a function f(x) and we approximate 2 roots a and b for the function such that f(a).f(b)<0.
Then we find another point
c=(a+b)/2
if f(c)==0
then root=c;
else
if f(a).f(c)<0
b=c;
if f(b).f(c)<0
a=c;
and we repeat these steps for the given number of iterations.

(more…)


Difference between Applets and Applications Program in Java with Examples

Introduction to Applets and Applications in Java

Venn diagram explaining features of Java Applets and Application

Venn diagram explaining features of Java Applets and Application

In java an applet is a special kind of Java program that a browser enabled with Java technology can download from the internet and run. An applet is typically embedded inside a Web page and runs in the context of the browser. In order to be provided with the standard interface between the applet and the browser environment, an applet must be a subclass of the java.applet.Applet class or javax.swing.JApplet class. Java applets are compiled using javac command, but are run either with a browser or with the appletviewer command.

Applications in java are thought to be larger than applets which runs in a desktop mode and is used as productive software application. They can be created by writing packages other than java.applet.Applet. Java application programs run in a standalone environment with the support of virtual machine(JVM). Java applications are also compiled using the javac command and run using java command. A java application has a full network and local file system access, and its potential is limited only by the creativity of its developers. (more…)




Object Oriented Programming – Theory and Examples

What is Object Oriented Programming?

Object Oriented Programming (OOP) is commonly used in programs which require doing the same things over and over again. Much like a function or method can be ran multiple times, OOP classes can be ran multiple times, simultaneously.

When is OOP used?

OOP is used in games and some other software. The reason it is used in games is because the game requires the same things to happen over and over again at the same time, for example… (more…)