And or Assignment (Shaik Shoaib 2152)
And or Assignment (Shaik Shoaib 2152)
Exercise
First 01 Use of AND Function: Second
Second Delivery Delivered
Delivery First Product Cost Delivery Product Cost Person Laptop Twice
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam FALSE
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet TRUE
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam FALSE
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo FALSE
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick FALSE
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather TRUE
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet FALSE
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel FALSE
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart FALSE
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam FALSE
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel FALSE
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam FALSE
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet FALSE
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick FALSE
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam FALSE
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo FALSE
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick FALSE
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo FALSE
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet FALSE
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam FALSE
Exercise
First 02 Use of OR Function: Second
Second Delivery Laptop
Delivery First Product Cost Delivery Product Cost Person Delivered
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam TRUE
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet TRUE
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam TRUE
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo TRUE
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick TRUE
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather TRUE
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet FALSE
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel FALSE
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart FALSE
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam FALSE
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel TRUE
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam FALSE
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet TRUE
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick TRUE
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam TRUE
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo TRUE
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick FALSE
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo FALSE
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet FALSE
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam FALSE
Exercise
First 04 Use of XOR Function: Second Only One
Second Delivery
Delivery First Product Cost Delivery Product Cost Person Product Cost
Date
1-Mar-22 Laptop $2,479.94 Date
1-Mar-22 Mobile Phone $699.95 Sam <$2000
#NAME?
15-Mar-22 Laptop $1,732.99 16-Mar-22 Laptop $3,164.99 Janet #NAME?
17-Mar-22 Laptop $1,174.99 18-Mar-22 Mobile Phone $429 Sam #NAME?
19-Mar-22 Laptop $1,799.99 21-Mar-22 Mobile Phone $1,525 Leonardo #NAME?
22-Mar-22 Laptop $3,164.99 23-Mar-22 Mobile Phone $599 Patrick #NAME?
25-Mar-22 Laptop $1,199.00 26-Mar-22 Laptop $1,199.00 Heather #NAME?
28-Mar-22 Mobile Phone $699.95 29-Mar-22 Mobile Phone $449 Janet #NAME?
29-Mar-22 Mobile Phone $949 29-Mar-22 Fitness Tracker $149.95 Daniel #NAME?
2-Apr-22 Mobile Phone $429 3-Apr-22 Fitness Tracker $129.95 Stewart #NAME?
5-Apr-22 Mobile Phone $1,525 6-Apr-22 Smart Watch $399 Sam #NAME?
11-Apr-22 Laptop $1,799.99 13-Apr-22 Smart Watch $183.90 Daniel #NAME?
17-Apr-22 Mobile Phone $475 18-Apr-22 Smart Watch $299 Sam #NAME?
23-Apr-22 Mobile Phone $449 24-Apr-22 Laptop $2,479.94 Janet #NAME?
27-Apr-22 Fitness Tracker $149.95 28-Apr-22 Laptop $1,732.99 Patrick #NAME?
4-May-22 Fitness Tracker $129.95 6-May-22 Laptop $1,174.99 Sam #NAME?
7-May-22 Smart Watch $399 7-May-22 Laptop $1,799.99 Leonardo #NAME?
13-May-22 Smart Watch $183.90 14-May-22 Smart Watch $183.90 Patrick #NAME?
15-May-22 Smart Watch $299 16-May-22 Tablet $565 Leonardo #NAME?
17-May-22 Tablet $560 19-May-22 Tablet $560 Janet #NAME?
19-May-22 Tablet $565 19-May-22 Smart Watch $299 Sam #NAME?
Exercise 01 Use of AND Function: The delivered products are given. Your
task is to find the number of occurrences where two laptops delivered in a
single slot (same row). The output will be true or false.
Exercise 02 Use of OR Function: Find when a laptop is delivered.
Again, the output will be true or false.
Exercise 03 Application of NOT Function: Check if the second
delivery is on the same date as the first delivery. The output will be
true or false.
Exercise 04 Use of XOR Function: Return true if only one of the
products’ cost is less than $2,000. Again, the output will be true or
false.
Exercise 05 Combination of AND, OR Function: In this exercise,
your task is to return true whenever a laptop or mobile phone is
delivered by the “Astro” company.