Question: Create a program that functions as a simple Boolean calculator for 32 -bit integers. It should display a menu that asks the user to make
Create a program that functions as a simple Boolean calculator for 32 -bit integers. It should display a menu that asks the user to make a selection from the following list: 1. x AND y 2. xORy 3. NOT x 4. x XOR y 5. Exit program When the user makes a choice, call a procedure that displays the name of the operation about to be performed and then perform the operations as defined below. AND_op: Prompt the user for two hexadecimal integers. AND them together and display the result in hexadecimal. OR_op: Prompt the user for two hexadecimal integers. OR them together and display the result in hexadecimal. NOT_op: Prompt the user for a hexadecimal integer. NOT the integer and display the result in hexadecimal. XOR_op: Prompt the user for two hexadecimal integers. Exclusive-OR them together and display the result in hexadecimal. So, your program should have 5 procedures: 1. Main: show the menu, take user inputs and call the other procedures. (2-5) Four more procedures for the 4 operations above. Submit a report with the code and screenshots showing the program is running
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
