Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views3 pages

Assignment 3 Data

The document presents various examples of logical operations and data tables related to student names, majors, GPAs, and attendance. It includes conditions for matching names and determining whether students are in specific sets based on their attributes. The tables provide TRUE or FALSE outcomes based on the criteria applied.

Uploaded by

pgk1404
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Assignment 3 Data

The document presents various examples of logical operations and data tables related to student names, majors, GPAs, and attendance. It includes conditions for matching names and determining whether students are in specific sets based on their attributes. The tables provide TRUE or FALSE outcomes based on the criteria applied.

Uploaded by

pgk1404
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Example 1 Example 2: Liking Taylor Swift and/or Bad Bunny

A (Age>19) B (Marketing Major) AND(A,B) C (Swift) D (Not Swift) E (Bad Bunny) OR(D,E)
TRUE TRUE TRUE FALSE TRUE TRUE TRUE
TRUE FALSE FALSE FALSE TRUE FALSE TRUE
FALSE TRUE FALSE TRUE FALSE TRUE TRUE
FALSE FALSE FALSE TRUE FALSE FALSE FALSE

Example 3
X NOT(X)
FALSE TRUE
TRUE FALSE

Data Table TRUE or FALSE Table


Major GPA Year Major is acct? GPA > 3.5? Year is senior? Accounting AND GPA>3.5 (Accounting AND GPA>3.5) OR NOT senior
Accounting 3.6 sophomore TRUE TRUE FALSE TRUE TRUE
Accounting 2.8 freshman TRUE FALSE FALSE FALSE TRUE
Accounting 3.8 senior TRUE TRUE TRUE TRUE TRUE
Marketing 3.5 junior FALSE FALSE FALSE FALSE TRUE
Marketing 3.6 senior FALSE TRUE TRUE FALSE FALSE
MIS 3.7 sophomore FALSE TRUE FALSE FALSE TRUE
MIS 2.9 junior FALSE FALSE FALSE FALSE TRUE
MIS 3.6 senior FALSE TRUE TRUE FALSE FALSE
Name you want to check Index Number List (Array) of names MATCH result 1
Lily Cooper 1 Lucas Smith 8
2 Charlotte Rodriguez
3 Isaac Thompson
Failing Match Name 4 Ruby Flores MATCH Result 2
Abigail Parker 5 Owen Carter #N/A
6 Penelope Green
7 Dylan Collins Match result with feedback
8 Lily Cooper Name not found
9 Mason Martin
10 Eleanor Johnson
11 Levi Lee
12 William Baker
Student Names

Set 1 (Attendance) In set 1 but not in 2 Set 2 (Official Roll) In set 2 but not in 1
Kiet Pham Name not found Abigail Parker FALSE
Charlotte Rodriguez FALSE Addison Phillips FALSE
Isaac Thompson FALSE Alexander Ramirez FALSE
Ruby Flores FALSE Aria Anderson FALSE
Owen Carter FALSE Audrey Foster FALSE
Penelope Green FALSE Avery King FALSE
Dylan Collins FALSE Avery Torres FALSE
Lily Cooper FALSE Benjamin Davis FALSE
Mason Martin FALSE Caleb Garcia FALSE
Eleanor Johnson Name not found Caroline Mitchell FALSE
Levi Lee FALSE Charlotte Rodriguez FALSE
William Baker FALSE Chloe Turner FALSE
Avery King FALSE Daniel Gonzalez FALSE
Jackson Perez FALSE David Brown FALSE
Harper Wright FALSE Dylan Collins FALSE
Benjamin Davis FALSE Madison Jackson Name not found
Zoey Scott FALSE Elijah Hernandez FALSE
Caleb Garcia FALSE Isabella Perez FALSE
Grace Mitchell FALSE Ethan Nelson FALSE
Elijah Hernandez FALSE Gabriel Adams FALSE
Chloe Turner FALSE Grace Mitchell FALSE
Ethan Nelson FALSE Harper Wright FALSE
Aria Anderson FALSE Isaac Thompson FALSE
Daniel Gonzalez FALSE Emily Lewis FALSE
Isabella Perez FALSE Jackson Perez FALSE
Lucas Robinson FALSE Jacob Collins FALSE
Sofia Reed FALSE Jonathan Ramirez FALSE
Alexander Ramirez FALSE Joshua Reed FALSE
Emily Lewis FALSE Julian Carter FALSE
Nicholas Campbell FALSE Levi Lee FALSE
Abigail Parker FALSE Lily Cooper FALSE
Jacob Collins FALSE Lucas Robinson FALSE
Madison Cooper FALSE Lucas Smith Name not found
Michael White FALSE Madison Cooper FALSE
Elizabeth Jackson FALSE Mason Martin FALSE
Joshua Reed FALSE Elizabeth Jackson FALSE
Avery Torres FALSE Michael White FALSE
Samuel Hill FALSE Natalie Hall FALSE
Addison Phillips FALSE Nicholas Campbell FALSE
Ryan Murphy FALSE Owen Carter FALSE
Scarlett Wilson FALSE Penelope Green FALSE
Gabriel Adams FALSE Ruby Flores FALSE
Natalie Hall FALSE Ryan Murphy FALSE
Julian Carter FALSE Samuel Hill FALSE
Victoria Martinez FALSE Scarlett Wilson FALSE
David Brown FALSE Sofia Reed FALSE
Audrey Foster FALSE Victoria Martinez FALSE
Jonathan Ramirez FALSE William Baker FALSE
Caroline Mitchell FALSE Zoey Scott FALSE

You might also like