Finish the truth table. There are four rows 13 columns. See the column heading for what to do. Two rows and several colu

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Finish the truth table. There are four rows 13 columns. See the column heading for what to do. Two rows and several colu

Post by answerhappygod »

Finish the truth table. There are four rows 13 columns. See the column heading for what to do. Two rows and several columns have been done for you. C ++thanks
6 7 8 //Systes Level Libraries 9. #include <iostream> //Input-Output Library using namespace std; 10 11 12 13 24 25 26 27 20 29 31 32 33 34 35 15 16 17 18 19 //Function Prototypes 20 21 //Execution begins here! 22 int maintint arge, chare argv) ( //Declare Variables 23 bool x,y: 36 37 38 ./ 40 41 42 43 45 46 47 48 49 50 51 52 53 github.com //User Defined Libraries //Global Constants, not Olobal variables //These are recognized constants from the sci //Physics/Chemistry/Engineering and Conversic //systems of units! } //Heading cout<<"X Y IX TY X&&Y XIY X* X*Y*XX*Y* <<1(XY) 1X1Y 1(X&Y) endl; //First Row x=y=true: cout<<(x? T':'F') << " cout<<ly?'T':'Pice cout<<[!x?'T":"<< cout<<(ly?'T":"F*}<<* "; cout<<(x&&y?"T":"F)<<" " cout<<(x|y? T':'F)<< "; cout<<(x^y?'T":F¹)<< cout<<endl; //Second Row yfalse; cout<<[x?'T":"F"]<<" "; cout<<ly?'T':'F¹)<< cout<<[1x?'T':'F') << " cout<<(ty? T':'F')<e "1 cout<<(xy?"T":F¹)<<* cout<<(x|y? T':'F)c< cout<<x*y?'T':'F') << " cout<<endl; //Exit the program return 0; "2 "F Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About Ⓒ2022 GitHub, Inc.
Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y !X !Y X&&Y XIY XAY XAY^X X^Y^Y !X&& !Y " <<"! (X||Y) !X||!Y ! (X&&Y) "<<endl; //First Row x=y=true; cout<<(x?'T':'F')<<" cout<<(y?'T':'F') <<" "; cout<<(!x?'T':'F')<<" cout<<(!y? 'T': 'F')<<" cout<<(x&&y?'T': 'F') <<" cout<<(x|y?'T':'F')<<" cout<<(x^y?'T':'F') <<" "; cout<<endl; //Second Row y=false; cout<<(x?'T':'F')<<" cout<<(y?'T':'F') <<" cout<<(!x?'T':'F')<<" cout<<(!y?'T':'F')<<" cout<<(x&&y?'T':'F')<<" cout<<(x|y?'T':'F') <<" cout<<(x^y?'T':'F')<<" cout<<endl; //Exit the program return 0; DIC
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply