I think there is a problem with how steps 5-7 are written. See below:
Step 5. If the shop name is “SV Stores” and customer name is “Neeraja” then set A equal to 1
Step 6. If the shop name is “Big Bazaar” and customer name is “Neeraja” then set B equal to 1
Step 7. If the shop name is “Sun General” and customer name is “Neeraja” then set C equal to 1
It says if shop name is X and customer name is Neeraja, then set A/B/C equal to 1. It says set equal to, but not increment. So this variable can either only be 0 or 1, right?
Let's say Neeraja visits SV stores for the first time, then step 5 will become operational, A sets to 1 and X will be incremented by 1.
Then Neeraja visits SV stores again, step 5 becomes operational again (A sets to 1), and X will be incremented by 1 again.
So I think X should represent the numbers of Neeraja's visits to SV Stores, Big Bazaar or Sun General.
Does this make sense? What am I missing?