Skip to content

MisbahUddinRafi/Truth-Table-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Project Name: Truth Table Generator
Developer: Md. Misbah Uddin Rafi (CSE, BUET)
Language and Libraries: Java, JavaFX, CSS.

I learned Java and JavaFX in my second semester. And I have Digital Logic Design course in my upcoming semester. So, I thought that it will be a great job to build a project that can generate the truth table when I will enter a Boolean expression. So, this will help me to revise the concepts that I learned in the last semester, and will also help me in the upcoming semester. So, that's how this project was build.


I tried to keep everything simple in this project, including the interface, functionalities and the codes. Currently, the project supports these things:

Input:

    -> A user will enter a Boolean expression (infix notation)
    -> user can use these symbols: AND(.), OR(+), NOT(') and opening '(' and closing brackets ')'.
    -> currently, it only supports the primary Boolean operations. In future, I will also add options for other operators.
    -> maximum 10 variables are allowed.

Output:

    -> when the user will press the generate button, the program will generate the truth table and the postfix notation for the given Boolean expression. But in the truth table, there will be minimal number of columns for keeping the things simple. So, if there are total n variables in the input, there will be n+1 columns in the output: n columns for the n variables, and the last one column for the functions output.

Snapshots:

Screenshot 2025-11-25 005439 Screenshot 2025-11-25 005541 Screenshot 2025-11-25 005457

Future Plan:

    -> add an option to generate truth tables for two expressions, so that we can easily compare them to see if they are equivalent or not.
    -> add more Boolean operators (XOR).

About

Project Name: Truth Table Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published