0

Hello,

I am currently working on an algorithm and i am quite confused.

The algoritm is:

Put q = 19

1. For i=1 to 3

If the ith element of the list is a letter then

If the letterâ€™s position in the alphabet is an odd number then

q = q+ 4

else

If the ith element is numeral n then

q = q + n.

2. Return q.

I have AB56 for the category number(the list). What I did was that I used a table with 3 columns. i, CatNumber and d. But I am still confused how to fill the table.

by following the algorithm. Should I have an additional q column in the table?

Thanks