Home Logic Ubuntu (Linux) Blog

freeCodeCamp: Set Theory

  Set Theory Homework

Use logic and set theory to write code, that solves each problem below. You can use any language. You may use my PHP Lessons to complete the assignment.

Problem 1

You are building an application that displays a blog page. Write the code that defines a blog object or array.

Problem 2

Write code to randomly pair 2 employees. Each employee pair must contain 1 programmer and 1 systems admin. If a programmer has more than 10 years experience, he should only be paired with system admins with at least 5 years experience.

Problem 3

Commander Coral just recieved a shipment of food shipment. Each food item is classified as breakfast, lunch or dinner.

Write the code to store Coral's set of foods. The set of food contains 3 subsets: breakfast, lunch and dinner.

you can manually code the food items, create an html form, or a command line program.