Computer Science, asked by omprakashsingh67, 4 months ago

The following procedure finds the highest amount of bill generated at “Sun General” from the “Shopping Bills” dataset. But the programmer may have made mistakes in one or more steps. Identify all such steps (if any). It is a Multiple Select Question (MSQ).

Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Maintain a variable max and initialize it to 1
Step 3. If Pile 1 is empty then stop the iteration
Step 4. Read the top card in Pile 1
Step 5. If the shop name is “Sun General” and max > total bill amount then store total bill amount in max
Step 6. Move the current card to another pile called Pile 2 and repeat from step 3

Answers

Answered by edward99
3

Answer:

no mistakes in the data set

Answered by ridersr9
23

Answer:

step 5

Explanation:

the value of max is initialized as 1

In step 5:

If the shop name is “Sun General” and max > total bill amount then store total bill amount in max

max > total bill     ( if the bill amount is 567 )

then 1 > 567 (Wrong)

Due to this, it is not possible to store the total bill amount in max

Similar questions