Question: C++ Your task for this assignment is to use C++ language to perform basic set operations 1. Perform basic set operations using the C++ programming

C++

C++ Your task for this assignment is to use C++ language toperform basic set operations 1. Perform basic set operations using the C++

Your task for this assignment is to use C++ language to perform basic set operations 1. Perform basic set operations using the C++ programming language. The program should begin by initializing three sets, A, B and C, to the values shown below. Perform the union and intersection of the three sets. Perform these set differences: A-B, B-A, A-C, C-A, B-C and C-B. The total number of set operations performed is eight. A = {P1 P12 P18 P20 P27 P29 P6 P7} B = {P1 P12 P23 P26 P28 P8} C = {P1 P13 P14 P15 P2 P22 P23 P25 P29 P7} The program should output the original set values and the results of the above eight set operations performed, all clearly labeled for the reader. The program output results are to be written to a text file named csc231_prog1_lastname.txt (where lastname is your last name) 2. 3. As a starting point, consider creating and run a Visual Studio C++ project containing the following C++ code. Then make appropriate changes for this assignment: // csc231 programl sample c++ code #include #include #include #include #include using namespace std; int main() string sl = "c:\\Users\\Kevin Byron\\"; string outFile; cout > OutFile; string inFileAdd2 - sl + outFile; ofstream out stream; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!