Free Essay

Boolean Logic

In: Computers and Technology

Submitted By jSechrist110
Words 703
Pages 3
UNDERSTANDING BOOLEAN LOGIC AND ITS APPLICATIONS

In the 1800’s (1815-1864), George Boole, a English mathematician who did extensive work in the subject of logic, invented a system of mathematics in which the abstract concepts of true and false can be used in computations. In an attempt to create a new form of mathematics, Mr. Boole identified certain patterns of logic that were later found to be easily translated into an electronic language—essentially, a "switchon/switchoff" pattern. Today, using tiny electronic switching mechanisms inside the computer, "decisions" are made with lightning speed within the central processing unit (CPU). These decisions are based on whether a tiny switch is on or off at any given time. Computer programmers follow prescribed sets of instructions to "teach" computers how to make decisions to carry out instructions. Programming is made possible by sets of instructions called languages. Many of these languages are made up of the logic building blocks identified by Mr. Boole more than 100 years ago, long before computers. The building blocks that Mr. Boole identified are AND logic, OR logic, NOT logic, NAND logic, and NOR logic. Computer decisions are made from these patterns of logic. All programming languages allow you to create expressions that can be evaluated as either true or false, which are called Boolean expressions. A Boolean condition is a conditional statement containing a Boolean expression, and another name for a conditional statement is a hypothesis. In computer programming languages, a hypothesis is formed by using the word “if” with a Boolean expression. The Boolean expression can be evaluated as True or False. When the Boolean expression within the hypothesis is true, then the conclusion occurs. The conclusion will not happen unless this hypothesis is satisfied as True. So, the “if” statement uses the Boolean expression as a way of deciding whether the conclusion that follows is executed. If the Boolean expression is True, the conclusion is executed. Typically, the Boolean expression that is tested by an If-Then statement is formed with a relational operator, which determines whether a specific relationship exists between two values. Because the expression can be only true or false, it is considered to be a Boolean expression. Examples of Boolean expressions which use relational operators are as follows: x >= y Is x greater than or equal to y? x != y Is x not equal to y?
In the general format, the condition is any Boolean expression. If the expression is true, the statements that appear next are executed up to the line that reads Else; likewise, if the expression is false, the statements that appear between Else and End If are executed. Programming languages provide a set of operators known as logical operators, which you can use to create complex Boolean expressions. The logical AND operator and the logical OR operator allow you to connect multiple Boolean expressions to create a compound expression. The logical NOT operator reverses the truth of a Boolean expression. Examples of compound Boolean expressions that use logical operators are as follows: x > y AND a < b Is x greater than y AND is a less than b? x == y OR x == z Is x equal to y OR is x equal to z? NOR (x > y) Is the expression x > y NOT true?
The AND operator takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both subexpressions are true. The OR operator takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true. The NOT operator is a unary operator that takes a Boolean expression as its operand and reverses its logical value. A Boolean variable can hold one of two values: true or false. Boolean variables are commonly used as flags, which indicate whether specific conditions exist. When the flag variable is set to False, it indicates the condition does not exist. When the flag variable is set to True, it means the condition does exist. You declare a Boolean variable in the following ways: Declare Boolean flag; Set answer = True; Set x = False flag = 16 > 15 (flag holds true) answer = -12 < 4 (answer holds true) x = 8.5

Similar Documents

Free Essay

Here It Is

...determine the output – (Learn how to read a FLOWCHART) 4. Know the relational operators and how to use them: Pg. 119 a. > Greater than (x > y) Is x greater than y? b. < Less than (x < y) Is x less that y? c. >= Greater than or equal to (x >= y) Is x greater than or equal to y? d. <= Less than or equal to ( x <= y) Is x less than or equal to y? e. == Equal to (x == y) Is x equal to y? f. != Not equal to (x != y) Is x not equal to y? 5. Know the different Logic Operators and how to evaluate them: Pg. 147 a. AND – This operator will allow you to connect multiple Boolean expressions. true AND false = false false AND true = false false AND false = false true AND true = true b. OR - This operator will allow you to connect multiple Boolean expressions. true AND false = true false AND true = true false AND false = false true AND true = true c. NOT – This operator reverse the truth of a Boolean expression. NOT true = false NOT false = true 6. Know the different types of loops and...

Words: 1167 - Pages: 5

Premium Essay

Et2750

...Justin Hollis ET2750 Exercise 2.1 1) In Allen-Bradly PLCs memory is organized using either rack-based systems or tag-base systems. 2) The difference is that the newer Logix series PLCs use variable and tag based systems. 3) In the Rack / Slot system the slot locations in the rack determine the location of the I/Os in the system. In a tag-base system the variable names for the I/Os are defined when there designed. 4) Data files hold memory locations and instructions. Program files contain the controller information, main ladder program, interrupt subroutines, and all other subroutine programs. 5) Output Image 32 words1 Input Image 32 words1 Status 12 words1 Bit (Binary) 1000 words Timer 1000 structures (3000 words)2 Counter 1000 structures (3000 words)2 Control 1000 structures (3000 words)2 Integer 1000 words Floating Point 1000 structures (2000 words)2 ACII 1000 words BCD 1000 words Block Transfer 1000 structures (6000 words)2 Message 585 structures (32760 words)2 PID 399 structures (32718 words)2 SFC status 1000 structures (3000 words)2 ASCII string 780 structures (32769 words)2 User Defined 6 6) The data files for a PLC 5 contain an identifier indicated by letters in the file type. Data files for a SLC 500 store a number of instructions or memory locations based on the instructions stored in the file. 7) Project – a collection of...

Words: 558 - Pages: 3

Premium Essay

Business

...Case study Submission details |Candidate’s Name | |Candidate ID | | |Assessor’s Name | | |Assessment Site | | |Assessment Date/s | |Date | | The Assessment Task is due on the date specified by your assessor. Any variations to this arrangement must be approved in writing by your assessor. Submit this document with any required evidence attached. See specifications below for details. Performance objective The candidate must be able to demonstrate a broad knowledge of research concepts, methods and processes. Assessment description The task is a case study with questions that assesses if the candidate has acquired the underpinning knowledge and skills required to gather, organise, analyse and present research information in the work place. Procedure 1. You have 5 minutes of reading time before you begin the test and 30 minutes to complete the case study questions. 2. You can ask your assessor if you are unsure about any questions. 3. You are to answer all of the questions in the time provided to you by your assessor. ...

Words: 599 - Pages: 3

Free Essay

Dialog Styles

...DIALOG The Dialog service is the world's most comprehensive online information Retrieval service and has been serving users since 1972. With over 600 databases from a broad range of disciplines, Dialog provides international access to information in a broad scope of subject areas. The volume of data available combined with the system's searching capabilities make Dialog the largest and most powerful online service of its type. The Dialog content collection contains hundreds of databases comprised of millions of documents drawn from a multitude of sources. Dialog brings you scientific and technical literature; full-text trade journals, newspapers and newswires; details on millions of chemical substances; information on patents and trademarks issued worldwide; demographic data; and company financial statistics. Accessing Dialog. All Dialog Command Language interfaces are accessible via the Internet using TCP/IP protocols, most commonly using: A Web browser. Internet Explorer 5.X or higher or Netscape Navigator 4.7 or higher are recommended. Internet access is available at the desktop in most businesses and academic institutions. Internet Service Providers (ISP) also provides Internet access for a fee by means of a telephone dial-up connection, DSL broadband cable, or wireless service. In addition to Internet access, you will also need a valid user account for Dialog. Each account is assigned User ID and password that are required in order to log on to the service. Institutions...

Words: 2834 - Pages: 12

Free Essay

Information Technology

...1. what is e-classroom? 2. what is industrial robot? Explain that. 3. Describe about the process that Mubin told about his parents. 4. ICT used for doing many dangerous situation succesfully. Explain that. Answers: 1. main book. 2. Industrial robot is a robot that is used in many dangerous work. Now all the industrial work in industry are done by industrial robot. Human become tired,bored but robot never. Robot can do work for long time. In the big industry of the world now robot is uses as labor. 3. Mubin told his parents about the use of computer in operating phone. He also told about the drone system. Mubin works in air force thats why his parents always anxious for him.They think about the airplane accident. Then mubin told them about the latest technology that used in aircraft. Now all the airplane are opetated by computer. Now pilot dont have to do many things. So the posibility of the plane accident now become less. Now a days there is no pilot in the fighter plane. The drone system is used normally in war. 4. Besides the use in aircraft ICT also used in many dangerous sector for doing many dangerous work. Now most of the work in the big industry is done by robot bacuase robot dont get tired or bored like human. Now human just observe the work either its right or wrong. Now in transportation the use of ICT increased a lot. In future if car dmis driven by robot then the number of road accidents will definately less. So now ICT is used in many dangerous sector...

Words: 679 - Pages: 3

Free Essay

Memo Example

...To: From: cc: Subject: Date: This memo describes the progress on the Computer Recycling Work Station (CRWS) project. We are to design a way for the CRWS to be effective and efficient to allow workers to safely test and disassemble used computers or used computer components and allocate them into three different routes: scrap, recycle, or resale Progress: Our first step was to develop an IDEF0 of the computer disassembly process in which the CRWS will be designed to operate all necessary steps and requirement. The IDEF0 modeling language displays multiple interactions between processes and elements of complex systems. The model that was developed was created form the viewpoint of Industrial Engineers using logical understanding of how to assemble or disassemble computers. Our attached document shows our model containing A-0, A0, A1, A2, and A3 level. At A-0 level a single task of disassembling a used computer is presented with resale, scrap, and recycle as the desired outputs. At A0 level contains three separate steps in the process: A1 (test computer), A2 (disassemble computer), and A3 (test component). Those three separate steps have their own detailed processes with the same outputs. Requirements: Using the program to help make the IDEF0 diagram look more professional, we have expanded each process in the A0 level to display the logical steps involved in disassembling the computer and its components by putting it together into an attached document...

Words: 312 - Pages: 2

Premium Essay

Distributed Systems and Centralized Systems

...Distributed System and Centralized Failures By Kentrell Lanier POS/355 March 28, 2014 Paul Borkowski Distributed System and Centralized System Failures Distributed system is many computers linked together that take on different tasks and act like one big computer. Distributed system is found in business across the world. When computers are linked together they share the same database and server. Distributed system is constructed for resource sharing, computation speedup, reliability, and communication Distributed system have different names for the computers in the system. Names such as sites, nodes, computers, machines, and host. Each names goes to a computer that’s part of the system. Resource sharing is when computers link up and they have different data any user can use the data form any computer in the system. Computation speedup is when the system recognize that one computer is over worked so the system have computers that’s have less duties to perform the tasks. Computation speedup help the system from crashing and tasks are preformed quicker. Distributed systems are more reliable because if one computer crash or fail the others can share its responsibilities and system will continue running smoothly. By computers being link together the users can communicate between each other. Two Types of failure When dealing with computers there are two types of failures. You can have a hard drive failure or a software failure. A hard drive failure is when the disk drive fails to...

Words: 874 - Pages: 4

Free Essay

Transfer Time

...Most people who use computers are clueless to the internal ways that computers work. Here we will be talking a little about why a computer user might need to be familiar with things such as the binary system, Boolean operations, and the time it takes to transfer data. The average computer user is probably not aware that the actual operations of a computer are done with a binary system. Most of the time a typical computer user has no need to think about this aspect of computers, but every now and then the underlying binary nature will manifest itself. It’s more likely they will encounter a more compact variant of the binary system, called hexadecimal (or “hex” for short). Hex can come up on a Windows error message and the hex addresses may help pinpoint the source of trouble. Hex can also be used by spammers to hide their internet addresses. Another place where hex numbers commonly occur is in hypertext markup language (HTML) code where they are used to designate colors. Boolean Operators are simple words (AND, OR, NOT) used to combine or exclude keywords in a search, resulting in more focused and productive results. Using these operators can greatly reduce or expand the amount of records returned. They are useful in saving time by focusing searches for more ‘on-target’ results that are more appropriate to your needs. The AND operator narrows the search by requiring both terms to be in each item returned. If one term is contained in the document and the other is not, the item...

Words: 504 - Pages: 3

Premium Essay

The Effects of Technology on the Accounting

...The Effects of Technology on the Accounting Accounting is one of the key elements in any organization, which financial health highly depends on its accuracy. Modern enterprise involves a huge number of financial transactions, which reflected through the relevant information flows. Accounting includes many routine operations, repetition of the same computing operations, as well as preparation of financial reports and payment documents. In this regard, the traditional accounting involves a complex and painstaking work of accountants, which requires considerable effort and knowledge. The modern development of information technologies and their wide application in economic practice can solve this problem by automating some of the accounting processes. Currently, the use of information systems in the enterprise became an integral part of the production process. Application of the system has allowed the company to automate operations on registration receipts, transfers and disposals of its assets, as well as to improve the overall degree of control, the availability, and conditions. In addition, automation of accounting has other advantages over the traditional way of accounting, such as ability to improve employees productivity, reduce the influence of the "human factor”, increase the speed of reporting and documentation, as well as to provide the possibility of parallel accounting in a several different standards. Implementation of information systems and technologies in...

Words: 751 - Pages: 4

Premium Essay

Library and Information Science

...Use of Information Search Techniques and Tools on Web By Prof. A. B. Bhosle* A university, a college or an institution of higher learning is rightly described as community where teachers and scholars are the head, students are the body and the library is it’s heart. If the body is to perform its function properly and efficiently its hearth must be well maintained and strong in its functioning. Thomas Carlyle was not exaggerating when he described a ‘true university as a collection of books’.[1] The library is obviously the source of power of knowledge. In higher education and research, the use of library is a matter of concerns to students, teachers, and researchers. The exponential growth of literature often creates problems for them to access appropriate literature and their use. The problem has, however, considerably been resolved with the help of information and communication technology (ICT). The use of information technology for management and handling of information and data has grown significantly even in many least-developed countries, despite their economic constraints. The use of information technology in libraries has been profoundly affecting all aspects of information acquisition, storage, and transfer. Its magnificent development has dramatically changed the mode of library operations and information services; we have now started to speak of a new type of information source, ‘knowledge base’.[2] Computer-based communications have not only widened...

Words: 2293 - Pages: 10

Free Essay

Asdf

...Computer Science Chapter 1: Introduction to Computer Hardware Different Categories of Computer and Computing Devices Tablets The lightest and most portable Touch interface, good for “light” work Laptops/Notebooks Larger display area; adds CD or DVD as well as physical keyboard They are portable; price for performance is not as good as desktop, choice of hardware is limited Specialized Variant Laptops Ultrabooks Thinner, and lighter than laptops Cost is higher than laptop (all hardware being equal) Netbooks Cheaper more portable laptop that is smaller and has a lower quality display and overall less powerful hardware Much less common than tablets today Desktop Computers Everything is separate (monitor, computer, keyboard, etc); this allows you to mix and match and customize your desktop computer, at the cost of increased complexity (some compatibility issues may arise – not everything works together) and decreased portability. Larger ‘footprint’ (More space is required, but this allows for increase expandability) ------------------------------------------------- Reduced costs/more options (compared to laptops) ------------------------------------------------- The purpose of an operating system is to run the computer. The operating system determines the interface of a computer, its configurability, and its security. In general, due to popularity and tweak-ability, the MS-WINDOWS (PC) OS has more viruses than the MAC OS. In general, the MAC OS...

Words: 3669 - Pages: 15

Free Essay

Fickdiehenne

...Digital Resources Maximilian A. Schmidt 1.EBSCOhost: My experience with EBSCOhost was very well. I tried to find out how the ISIS attack in Paris influenced the travel companies which are connected to Paris. EBSCOhost uses the Boolean logic so you can add specific words for your search. For me it worked very simple and well and also the results of the search were very useful. 2. FACTSET: FACTSET is a very good tool when your are searching for Company statistics. In my case I was searching for the statistics of the Volkswagen AG. My results were very good tables, statistics and graphs about the concern. It offers a great overview and is very clearly arranged. 3. IBIS World: 4. JSTOR: JSTOR is like a digital library were you have access to a lot of journal articles and even some books. The search system is very simple but you can also use the advanced search where you can especially look for a specific time period, ISBN number or decide what kind of resource you are searching for (Articles, books, reviews…). 5. NEXIS: 6. Passport by Euromonitor: Passport is a global market research database with also a lot of historic informations. So you can easily search for categories like for an example the growth or the per capita of household in specific countries. Also a very good overview and simple to use in style of clearly arranged tables and statistics. 7. ProQuest: 8. The Wall Street Journal: The Wall Street Journal gives you access to all...

Words: 315 - Pages: 2

Free Essay

George Boole Research Paper

...Boole, he is known best within the mathematics community for his success in defining logic by using algebra, or Boolean algebra as it is known today. Boole was born on November 2, 1815, in Lincoln, England, known predominantly as an industrial town. Gasser (2006) states “He was the first of four children born to John Boole, a cobbler, and Mart Ann Boole, nee Joyce, a lady’s maid” (p. 377-78). According to Britannica Online (2015), “He was given his first lessons in mathematics by his father, a tradesman, who also taught him to make optical instrument. Aside from his father’s help and a few years at local schools, however, Boole was self-taught in mathematics.” During the timeframe of Boole’s life, there were many political and social events that took place all around the world. Within England, Victoria took the throne in 1837 and would ultimately rule longer than any other British monarch. In 1838, slavery was abolished in the British empire. Additionally, in Ireland in 1845 the great potato famine began that lasted approximately four years killed about a million people, creating a large emigration to England and North America. In North America, in 1846 the Mexican-American War was fought, as well as the Civil War, although Boole died on December 8, 1864, in Ballintemple, Ireland, before the Civil War ended. Boole is most well-known for his discovery of algebra of logic, known today as Boolean algebra. He stated, “Boole was interested in symbolic analysis years before he wrote...

Words: 813 - Pages: 4

Free Essay

Computer Science

...Chapter 4: More on Logical, Information, and Text Functions Introduction Logical functions are those that involve Boolean values. The Boolean values are TRUE and FALSE. Some logical functions return a Boolean value as their result, others use the Boolean result of a comparison to choose between alternative calculations. There are six functions listed in the logical group in Excel 2003 – the functions AND, FALSE, IF, NOT, OR, TRUE – and a seventh in Excel 2007 – the function IFERROR. You’ll see the use of most of these in this lab. First, however, it’s worthwhile to become familiar with the logical operators. Logical Operators TRUE and FALSE are common concepts. They are values which pertain to statements. For example, the statement “It is morning.” is either TRUE or FALSE. We recognize that its truth value may change, but at any particular time the statement is either TRUE or FALSE. What may be hidden here is the existence of an implied comparison. To determine the truth value of any statement we compare our understanding of the meaning of the claim with the facts. Strictly speaking the statement “It is morning.” means the time of day is after midnight and before noon. To decide if it’s TRUE we need to know the actual time of day and compare it to our criteria. It’s in these comparisons that we use Logical Operators: |Comparison |Symbol | |less than |< | |less...

Words: 2638 - Pages: 11

Free Essay

Htdfd

...to develop the ability of the student in understanding the concepts related to this area of engineering. The objective is to train the students on the various tools used to solve problems related to the design of digital systems. These include: i) binary number system; ii) conversion between number systems; iii) Boolean algebra; iv) logic gates; v) Karnaugh maps; vi) combinational and sequential logic; vii) SSI and MSI design; viii) flip-flops; ix) counters; x) registers; xi) memories; and, xii) state machines. The problem solving and experimental skills of the student in the above areas are enhanced by a co-requisite Laboratory Course held on a weekly basis. COURSE PREREQUISITES CSI 201: Introduction to Computing PREREQUISITES BY TOPICS The student should have the general background in computers and algebra. COURSE CREDITS 3 Credit Hours INSTRUCTION TECHNIQUE Lectures will be used predominantly. These will be supported by problem sets and design projects, which include virtual instrumentation projects using LabVIEWTM. REQUIRED TEXT  Marcovitz A.B. Introduction to Logic Design, Third Edition. McGraw Hill, 2010. REFERENCES  Marcovitz A. B. Introduction to Logic Design, 2/E. McGraw-Hill, 2005.  Morris Mano. Digital Design, 3/E. Upper Saddle River, NJ, USA: Prentice Hall.  Floyd. Digital Fundamentals, 7/E. Upper Saddle...

Words: 1685 - Pages: 7