Share
Explore BrainMass

Working with Sets

Create two sets, set A and set B.
Set A will be a list of five items you personally NEED to buy the most (essential items).
Set B will be a list of five items that you WANT to buy the most (fun stuff).

* List the items in Set A and Set B, and also list or state the items in the union and in the intersection of Set A and Set B.

* Now assume that the prices of the items in your set A are 20, 40, 60, 70 and 80. Assume that the prices of the items in your set B are 90, 120, 30, 60 and 40.

Note: if you have one or two identical items in both sets, then assume that the prices of the identical items are the same as the prices that appear in set A (instead of having two different prices to the same item.)

* What will the total cost of Set A be if it contains one unit of each item?
* What will the total cost of the union set be if it contains one unit of each item?
* What will be the total cost of the intersection?
* What will the total cost of the union and of the intersection be if you consider two set A's and three set B's ?

Solution Preview

Here is an example (your sets will be different if you have different needs/wants):

Set A (needs)

A = {clothing, medicine, car costs, groceries, rent}

The prices are:
clothing = 40
car costs = 60
medicine = 20
groceries = 70
rent = 80

Set B (wants)

B = {clothing, car costs, jewelry, ice cream, vacation}

The prices are:
clothing = 40
car costs = 60
jewelry = 90
ice cream = 30
vacation = 120

(1) ...

$2.19