AN AUTOMATED SYSTEM TO CHECK FOR BALANCE BRACE

Postgraduate

INTRODUCTION

A computer is a device capable of performing computations and making logical decisions at speeds millions (even billions) of times faster than human beings can. For example, many of today’s personal computers can perform several billion calculations in one second. A person operating a desk calculator could not perform that many calculations in a lifetime. (Points to ponder: How would you know whether the person added the numbers correctly? How would you know whether the computer added the numbers correctly?) Today’s fastest supercomputers are already performing trillions of instructions per second!

Computers process data under the control of sets of instructions called computer programs.

These programs guide the computer through orderly sets of actions specified by people called computer programmers.

A computer consists of various devices referred to as hardware (e.g., the keyboard, screen, mouse, disks, memory, DVD, CD-ROM and processing units). The programs that run on a computer are referred to as software. Hardware costs have been declining dramatically in recent years, to the point that personal computers have become a commodity.

Most people are familiar with the exciting tasks computers perform. It is software (i.e., the instructions you write to command computers to perform actions and make decisions) that controls computers (often referred to as hardware). Java, developed by Sun Microsystems, is one of today’s most popular software development languages.

Computer use is increasing in almost every field of endeavor. Computing costs have been decreasing dramatically due to rapid developments in both hardware and software technologies.

Computers that might have filled large rooms and cost millions of dollars decades ago can now be inscribed on silicon chips smaller than a fingernail, costing perhaps a few dollars each. Fortunately, silicon is one of the most abundant materials on earth—it is an ingredient in common sand. Silicon chip technology has made computing so economical that about a billion general-purpose computers are in use worldwide, helping people in business, industry and government, and in their personal lives. The number could easily double in the next few years.

Over the years, many programmers learned the programming methodology called structured programming. But there is an exciting newer methodology, object-oriented programming although it is advisable to study both. Object orientation is the key programming methodology used by programmers today, but the internal structure is often built using structured-programming techniques. Also, the logic of manipulating objects is occasionally expressed with structured programming.

 

STATEMENT OF THE PROBLEMS

Programming language are the essential and difficult part of IT. It enable creation of new objects via simple and complex coding, difficulties in programming using parenthesis brackets in coding can spring the following challenges;

·        Prevent code from compiling and run

·        Unbalance brackets ( [ { } ] ) spring up errors and make debugging difficult

·        Tediousness in manually balancing of parenthesis of brackets in coding

AIM AND OBJECTIVES OF THE STUDY

The aim and objectives of this study is to develop a simple application that will illustrate the use of the stack operations is a program to check for balanced parentheses and brackets. By balanced, we mean that every open parenthesis is matched with a corresponding close parenthesis and that parentheses are properly nested.