Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name, aisle, location, price? peanut butter, 3, 5, 1.75
- Name, aisle, location, price? fuji apples, 2, 8, 1.50
- Name, aisle, location, price? bananas, 2, 1, 2.00
- Name, aisle, location, price? potato chips , 3, 3, 2.50
- Name, aisle, location, price? cookies,10,5,0.75
- Name, aisle, location, price? done
- start first while loop [['peanut butter', '3', '5', '1.75'], ['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- end first while loop [['fuji apples', '2', '8', '1.50'], ['peanut butter', '3', '5', '1.75'], ['bananas', '2', '1', '2.00'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- start first while loop [['fuji apples', '2', '8', '1.50'], ['peanut butter', '3', '5', '1.75'], ['bananas', '2', '1', '2.00'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- end first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- end first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- start first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50'], ['cookies', '10', '5', '0.75']]
- start first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50'], ['potato chips', '3', '3', '2.50']]
- start first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50']]
- start first while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50']]
- start odd while loop [['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato
- chips', '3', '3', '2.50']]
- end odd while loop [['fuji apples', '2', '8', '1.50'], ['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['potato chips', '3', '3', '2.50']]
- end first while loop [['potato chips', '3', '3', '2.50'], ['fuji apples', '2', '8', '1.50'], ['bananas', '2', '1', '2.00'], ['peanut butter', '3', '5', '1.75'], ['cookies', '10', '5', '0.75']]
- Potato Chips Aisle 3 Location 3 + 2.50 = 2.50
- Fuji Apples Aisle 2 Location 8 + 1.50 = 4.00
- Bananas Aisle 2 Location 1 + 2.00 = 6.00
- Peanut Butter Aisle 3 Location 5 + 1.75 = 7.75
- Cookies Aisle 10 Location 5 + 0.75 = 8.50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement