ShaanCoding / Boolean-Expression-Solver

A simple boolean expression validator, creating truth tables for boolean expressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boolean Algebra Expression Solver

This application is a simple Boolean algebra expression solver coded in C# using WPF. The purpose of this program was to help me learn WPF as well as utilize reverse polish notation and the shunting yard algorithm. This application takes a Boolean expression as an input and outputs its corresponding truth table.

Main Menu

How To Use

  1. Insert the number of terms you wish to evaluate in the "Number Of Terms" textbox
  2. Insert your desired expression to be evaluated into the "Expression" textbox

Symbols Used

The symbols used in this program include:

  • * as AND
  • + as OR
  • ^ as XOR
  • ' as NOT
  • () as order of operations and for grouping

Examples Of Expression

A example of an expression would be: (2 + 1') ^ 3 * 4

Prerequisites

This program requires no prerequisites

Built With

This program was built with no external frameworks excluding the C# system libraries, all additional libraries included, such as the maths class was created by me, Shaan Khan.

Authors

  • Shaan Khan - All Work

License

This project is licensed under the Mozilla Public License 2.0 - see the LICENSE files for details

About

A simple boolean expression validator, creating truth tables for boolean expressions

License:Mozilla Public License 2.0


Languages

Language:C# 100.0%