Java or C++ Build a Calculator For this project, you will build a working four-f
ID: 3827800 • Letter: J
Question
Java or C++
Build a Calculator
For this project, you will build a working four-function calculator using basic logic gates. First, take a look at this adder. http://www.instructables.com/id/4-Bit-Binary-Adder-Mini-Calculator
Your job is to extend this to a full four-function calculator. The user will input two 4-bit integers and decide whether to add, subtract, multiply or divide them. Your circuit will perform the desired calculation and output the correct answer. (Note you will need up to 8 bits for your output).
Explanation / Answer
include using namespace std; int main() { char op; float num1, num2; cout > op; cout > num1 >> num2; switch(op) { case '+': coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.