answersLogoWhite

0


Best Answer

how to write system analysis proposal

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Wirte Report on any system analysis or system proposal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a programme in C to find the union and intersection of two sets?

#include<stdio.h> #include<conio.h> void Union(int set1[10],int set2[10],int m,int n); void Intersection(int set1[10],int set2[10],int m,int n); void main() { { int a[10],b[10],m,n,i,j; int ch; clrscr(); printf("\nEnter the no of elements in first set:"); scanf("%d",&m); printf("\nEnter the elements:"); for(i=0;i<m;i++) { scanf("%d",&a[i]); } printf("\nElement of First set:\n"); for(i=0;i<m;i++) { printf("\t%d",a[i]); } printf("\nEnter the no of elements in second set:"); scanf("%d",&n); printf("\nEnter the elements:"); for(i=0;i<n;i++) { scanf("%d",&b[i]); } printf("\nElement of second set\n"); for(i=0;i<n;i++) { printf("\t%d",b[i]); } while(1) { printf("\n\tMenu\n\n1.Union\n2.Intersection"); printf("\n3.exit"); printf("\nenter your choice:-"); scanf("%d",&ch); switch(ch) case 1: union(a,b,m,n); break; case 2: intersection(a,b,m,n); break; case 3: exit(0); } getch(); } } void union(int a[10],int b[10],int m,int n) { int c[20],i,j,k=0,flag=0; for(i=0;i<m;i++) { c[k]=a[i]; k++; } for(i=0;i<n;i++) { flag=0; for(j=0;j<m;j++) { if(b[i]==c[j]) { flag=1; break; } } if(flag==0) { c[k]=b[i]; k++; } } printf("\nElement of resultant set\n"); for(i=0;i<k;i++) { printf("\t%d",c[i]); } } void intersection(int a[10],int b[10],int m,int n) { int c[20],i,j,k=0,flag=0; for(i=0;i<m;i++) { flag=0; for(j=0;j<n;j++) { if(a[i]==b[j]) { flag=1; break; } } if(flag==1) { c[k]=a[i]; k++; } } printf("\nElement of resultant set\n"); for(i=0;i<k;i++) { printf("\t%d",c[i]); } }


Related questions

How do you wirte a sentence using claimed?

It is sometime claimed that the current education system in the UK is not rigorous enough.


wirte two sentences about Jack underneath?

wirte two sentences about Jack underneath


How do you wirte 8.5 million?

8,500,000


How do you wirte eight million?

8,000,000


How do you wirte 825 as a decimal?

825.0


How do you wirte in Russia?

Type your answer here . . .


How do you wirte 5 0.1 0.03 0.006 0.00007 0.00002 0.000004 in standard form?

Not sure about wirte but you could write it as 5.136094


Which did William Shakespeare not wirte?

Epic poems


How do you wirte seventy-one million?

71000000 or 71,000,000.


Do Katy perry wirte her own song?

Most!


How do you wirte 65 in Roman numbers?

65 = LXV


How do you wirte 40 in standard?

It is already in standard form.