Let us define the most popular shop to be the one that generates the maximum total revenue. The given procedure finds the revenue of the most popular shop in the “Shopping Bills” dataset. Fill in the blanks from the given choices and complete the procedure.
Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Maintain four variables SVtotal, BBtotal, SGtotal, max and initialize them to 0
Step 3. If Pile 1 is empty then stop the iteration
Step 4. Read the top card in Pile 1
Step 5. __________________________________________________________
Step 6. __________________________________________________________
Step 7. __________________________________________________________
Step 8. Move the current card to another pile called Pile 2 and repeat from step 3
a) Step 5. If the shop name is “SV Stores” then store total bill amount in SVtotal. And if SVtotal > max then store SVtotal in max
Step 6. If the shop name is “Big Bazaar” then store total bill amount in BBtotal. And if BBtotal > max then store BBtotal in max
Step 7. If the shop name is “Sun General” then store total bill amount in SGtotal. And if SGtotal > max then store SGtotal in max
b)Step 5. If the shop name is “SV Stores” then add total bill amount to SVtotal. And if SVtotal > max then store SVtotal in max
Step 6. If the shop name is “Big Bazaar” then add total bill amount to BBtotal. And if BBtotal > max then store BBtotal in max
Step 7. If the shop name is “Sun General” then add total bill amount to SGtotal. And if SGtotal > max then store SGtotal in max
c)Step 5. If the shop name is “SV Stores” then add total bill amount to SVtotal. And if SVtotal > max then add SVtotal to max
Step 6. If the shop name is “Big Bazaar” then add total bill amount to BBtotal. And if BBtotal > max then add BBtotal to max
Step 7. If the shop name is “Sun General” then add total bill amount to SGtotal. And if SGtotal > max then add SGtotal to max
d)Step 5. If the shop name is “SV Stores” then store total bill amount in SVtotal. And if SVtotal > max then add SVtotal to max
Step 6. If the shop name is “Big Bazaar” then store total bill amount in BBtotal. And if BBtotal > max then add BBtotal to max
Step 7. If the shop name is “Sun General” then store total bill amount in SGtotal. And if SGtotal > max then add SGtotal to max
Answers
Answered by
0
Answer:
I am not the answer of this question
Similar questions
Music,
3 months ago
Science,
3 months ago
Geography,
7 months ago
Social Sciences,
7 months ago
Math,
1 year ago