Poor old Jezza had spent a day writing some computer code for a new integration for the Rubbish Bin collection service in the Magic Forest. He was informed by the so called analyst that the collection codes meant this:
AXXXXXX - Mon
XAXXXXX - Tue
XXAXXXX - Wed
XXXAXXX - Thu
XXXXAXX - Fri
XXXXXAX - Sat
XXXXXXA - Sun
Jezza was happy with this so he wrote his XSLT file to read like this
Code: Select all
<xsl:choose>
<xsl:when test="OccurDay = 'AXXXXXX'">Monday</xsl:when>
<xsl:when test="OccurDay = 'XAXXXXX'">Tuesday</xsl:when>
<xsl:when test="OccurDay = 'XXAXXXX'">Wednesday</xsl:when>
<xsl:when test="OccurDay = 'XXXAXXX'">Thursday</xsl:when>
<xsl:when test="OccurDay = 'XXXXAXX'">Friday</xsl:when>
<xsl:when test="OccurDay = 'XXXXXAX'">Saturday</xsl:when>
<xsl:when test="OccurDay = 'XXXXXXA'">Sunday</xsl:when>
<xsl:when test="OccurDay =''">By Appointment</xsl:when>
</xsl:choose>
Jezza Bear went to investigate and he was then informed that the codes could look like this:
ABXXXXX (Collection on Monday and Tuesday)
AXBXXXX (Collection on Monday and Wednesday)
AXXXXBC (Collection on Monday, Saturday and Sunday)
ABCDXXE (Collection everyday apart from Friday and Saturday)
ABCDEFG (Everyday)
Key
A - first collection
B - second collection
.
.
.
.
G - seventh collection
Jezza growled loudly told the analyst that it would be another days coding to which the Analsyt said "Just cut and paste the different combinations into you existing file...easy"
The question is Loungers how combinations of the various from AXXXXXX - ABCDEFG are there?
Happy to answer question if clarification is sought.