Question: Use C++ and Visual Studio Problem: Set Operations 1 Mathematically, a set is said to be consists of well-defined elements. Elements can be numbers (0,1,2,3,4,5,6,7,8,9

 Use C++ and Visual Studio Problem: Set Operations 1 Mathematically, aset is said to be consists of well-defined elements. Elements can be Use C++ and Visual Studio

Problem: Set Operations 1 Mathematically, a set is said to be consists of well-defined elements. Elements can be numbers (0,1,2,3,4,5,6,7,8,9 or letters A to Z) For instance, the following are well-defined sets A-(1,2,3, A, 5, 6, 7, G} and B-(2, 3, 4, 8, 9, B} A set may be described using other types of expression; specially, if the set has elements (members) that are numerous to list. There is some well-defined operation that can be performed on sets. The class should be called COSCOperation 1. Determining a given set A is a subset of B, or not and set B is a subset of A, or not. (This should be a function called getSubset) CREATE YOUR FUNCTION. A is-a-subset-of Bfalse B is-a-subset-of A talse 2. Union of sets: finds all elements of both A and B and generates a unique set and sorted (This should be a function called getUnion) CREATE YOUR FUNCTION. A union B11, 2, 3, 4, 5, 6, 7, 8, 9, A, B, G) 3. Intersection of sets: determines common elements that belong to both A and B. (This should be a function called getintersection) CREATE YOUR FUNCTION. A intersection-of B 12, 3, 4) 4. Complement of sets: given the following sets (This should be a function called getComplement) CREATE YOUR FUNCTION A 11, 2, 3, 4) and B5, 2, 3, 8] A-B={1,4} or B-A3(5, 8} Tasks Requirement 1. You are to develop a "Set Operation Calculator" using C++ Object Oriented Programming. The cpp file should be name Operation_LastNameFirstName.cpp Expressions are read from file call input.dat 2. Create a file with 2 line the first line is input for A and the second line should be the input for B (They don't have to be the same length but they can) a. Problem: Set Operations 1 Mathematically, a set is said to be consists of well-defined elements. Elements can be numbers (0,1,2,3,4,5,6,7,8,9 or letters A to Z) For instance, the following are well-defined sets A-(1,2,3, A, 5, 6, 7, G} and B-(2, 3, 4, 8, 9, B} A set may be described using other types of expression; specially, if the set has elements (members) that are numerous to list. There is some well-defined operation that can be performed on sets. The class should be called COSCOperation 1. Determining a given set A is a subset of B, or not and set B is a subset of A, or not. (This should be a function called getSubset) CREATE YOUR FUNCTION. A is-a-subset-of Bfalse B is-a-subset-of A talse 2. Union of sets: finds all elements of both A and B and generates a unique set and sorted (This should be a function called getUnion) CREATE YOUR FUNCTION. A union B11, 2, 3, 4, 5, 6, 7, 8, 9, A, B, G) 3. Intersection of sets: determines common elements that belong to both A and B. (This should be a function called getintersection) CREATE YOUR FUNCTION. A intersection-of B 12, 3, 4) 4. Complement of sets: given the following sets (This should be a function called getComplement) CREATE YOUR FUNCTION A 11, 2, 3, 4) and B5, 2, 3, 8] A-B={1,4} or B-A3(5, 8} Tasks Requirement 1. You are to develop a "Set Operation Calculator" using C++ Object Oriented Programming. The cpp file should be name Operation_LastNameFirstName.cpp Expressions are read from file call input.dat 2. Create a file with 2 line the first line is input for A and the second line should be the input for B (They don't have to be the same length but they can) a

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!