Answer to Question #182826 in C++ for ZAIN

Question #182826

Given three arrays A[n], B[n] & C[n] containing bit strings representing sets A, B & C respectively, write a code fragment to determine whether (̅A∩ B) ⊂ ̅C.


1
Expert's answer
2021-04-19T19:12:18-0400
#include<bits/stdc++.h>
using namespace std;


int main()
{
    
	char a[5] = {'0','1','1','0','1'};
	char b[5] = {'1','0','1','1','0'};
	int c;
	
	cout<<"\nBit String A[n] = "; 
	for(a=0;c<5;c++)
	{
	    cout<<A[c]<<", ";
	}
	
	cout<<"\nBit String B[n] = "; 
	for(a=0;c<5;c++)
	{
	    cout<<B[c]<<", ";
	}
	cout<<"\n\nCombined Bit String A[n] + B[n] = "; 
	for(c=0;c<5;c++)
	{
	    cout<<A[c]<<", ";
	}
	for(c=0;c<5;c++)
	{
	    out<<B[c]<<", ";
	}
	return(0);	
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS