On the Subject of Taco Tuesday

Who though Tuesday on Friday was a good idea?

This module has three displays, each with an arrow to their left and right. The bottom-most display also has a button above and slightly to the left of it.
To solve the module the defuser must input the correct entries for all displays. An incorrect submission will issue a strike.

FoodValue
Taco2
Pizza6
Ice Cream1
Burger4
Steak3
Pasta5
Hot Dog1
Veggies6
Candy2
Cake4
Chinese5
Buffet3

After the module is solved, go ahead and press the icon in the bottom right to celebrate! Of course, it sometimes celebrates in strange ways...

The first field from the top contains the three foods on the menu for the event you are scheduling. For each food in this field, find its equivalent value in the table to the right. Take the sum of all of these values to get value A.

Take each of the acquired values from the table, before summing them up, and interpret them as positions in the serial number. Take the sum of these characters, converting letters to their alphabetic position where necessary. This is value B.

After having determined both these values, look at the table below. Based on the day the bomb was started on, get Values C and D. After going through the table take both values modulo 7. Should C now be 0, set C to 1

Current DayValue CValue D
Sunday (20 - A) modulo 5 (B modulo 8) + 1
Monday Number of Batteries modulo 4 (B - A + 3) modulo 6
Tuesday B - 10 A + Last Digit in Serial
Wednesday A + B 5 + Number of Port Plates
Thursday (A × A) modulo 9 Number of Indicators + B
Friday Digital Root of (B × 2) Digital Root of (A × 2)
Saturday 6 + A + B Number of Ports

Now obtain a reading direction from the first rule that applies in the list below:

  • If there is a DVI-D Port on the bomb, read from top to bottom.
  • Otherwise, if there is a lit CAR indicator, read from bottom to top.
  • Otherwise, if today is Tuesday, read from top to bottom.
  • Otherwise, read from bottom to top.

Now go through the list of food items on page 1 in the specified direction, stopping at the first option whose value matches C. If this item is present on the module, this is the first display. Otherwise keep going through the table in the specified direction until an option present on the module is hit, independent of what its value is.

Now Convert D into a day of the week, via the table below, this will be entered into the second display:

SundayMondayTuesdayWednesdayThursdayFridaySaturday
0123456

Finally, check the following conditions to obtain the third display:

  • If there is an Ice Cream module on this bomb, the third display is Sunday.
  • Otherwise, if the obtained day value matches the day the bomb was started on or A modulo 7 matches D, the third display is Tuesday.
  • Otherwise, if the number of ports on the bomb is even, the third display is Thursday.
  • Otherwise, if there are any vowels in the serial number, the third display is Wednesday.
  • Otherwise, if there are no Parallel Ports on the bomb, the third display is Monday.
  • Otherwise, if there is an indicator labelled FRK, the third display is Saturday.
  • Otherwise, the third display is Friday.

If both obtained Days are different, press the button between displays two and three and enter both days normally. Should both days be the same, then leave the bottom display empty.