Explanation & Answer length: 2 pages2 attachmentsSlide 1 of 2

  • attachment_1attachment_1
  • attachment_2attachment_2

UNFORMATTED ATTACHMENT PREVIEW

Look Out, Jeff Bezos Due Friday, April 9 @ 6pm In this assignment, you will create The Jungle, a new online shopping site that will lay waste to Amazon. At its inception, Jungle will offer the following kinds of products: • electronics • apparel • jewelry • appliances • tools The Jungle is still lining up its suppliers, so its stock is limited. In fact, you can read all the items The Jungle carries from the file jungle_items.txt, a tab-delimited file. The file describes each item, one item per row that is formatted like this category name_of_item cost To buy things from The Jungle, a shopper will select the item by number from a list. The item will then be placed in the shopper’s cart. The shopper can check their cart at any time and remove an item or even clear the cart’s contents. When they are done, the shopper can pay and exit. This is how your solution will be graded: Points Requirement 1 Begins with an attractive, centered heading 2 Presents a menu of options and gets the users selection using a function called print_menu_and_get_choice 2 Repeats until the user decides to quit. 5 Reads the items from the file jungle_items.txt and loads them into lists. 5 Presents the list of items to the user, formatted as shown, and allows the user to select an item, using a function called print_items_and_get_choice. 5 When the user selects an item, it and its associated cost is added to their cart. 3 Shows the items in their cart, formatted as shown, when the user chooses item 2. It shows the message “Your cart is empty.” when there are no items in the cart. 5 Allows the user to remove a specific item or to clear all the items in their cart. 5 Shows the user the items in their cart and their total cost as formatted in the example when the user chooses option 4, and then exits the program 1 You add helpful comments to your program, particularly before functions to explain what they do. 1 You submit your program as jungle_lastname.py, where you replace “lastname” with your last name. You will earn -35 out of 35 if you copy any part of your code from someone or something else, or allow others to copy from you. There will be a 10 point penalty if your program crashes. Here is sample output on how The Jungle will work. ———————————————————————WELCOME TO THE JUNGLE We’ve Got Fun and Games ———————————————————————What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Your cart is empty. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 11 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 17 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Here are the items in your cart: Gold Ring $399.49 Leather Belt $ 24.99 What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 3 Here are the items in your cart: 1. Gold Ring 2. Leather Belt Enter the number of the item to remove, or ‘a’ to clear all items: 2 The item has been removed. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Here are the items in your cart: Gold Ring $399.49 What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 24 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 21 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Here are the items in your cart: Gold Ring $399.49 Screw Driver $ 9.99 Flip Flops $ 15.99 What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 3 Here are the items in your cart: 1. Gold Ring 2. Screw Driver 3. Flip Flops Enter the number of the item to remove, or ‘a’ to clear all items: a Are you sure you want to remove all items (y/n)? y Your cart has been emptied. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Your cart is empty. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 25 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 23 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 1 What would you like to purchase? 1. Walking Shoes ($32.95) 2. Sony PS 5 ($499.95) 3. Jeans ($49.95) 4. Necklace ($89.99) 5. Washing Machine ($799.95) 6. 70-inch TV ($699.49) 7. Running Shoes ($49.95) 8. Dress Shoes ($89.99) 9. Xbox One X ($449.95) 10. Nintendo Switch ($199.95) 11. Gold Ring ($399.49) 12. Necktie ($19.99) 13. Sun Dress ($59.99) 14. Dress Shirt ($69.99) 15. Watch ($119.99) 16. Dishwasher ($549.99) 17. Leather Belt ($24.99) 18. Hammer ($19.99) 19. Smart Watch ($399.99) 20. Laser Printer ($299.95) 21. Flip Flops ($15.99) 22. Cordless Drill ($109.95) 23. Fedora ($22.99) 24. Screw Driver ($9.99) 25. Saw ($23.99) 26. WiFi Router ($129.99) 27. 5G Smart Phone ($799.99) 28. Lawn Mower ($399.95) Enter number of choice: 9 The item has been added to your cart. What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 2 Here are the items in your cart: Saw $ 23.99 Fedora $ 22.99 Xbox One X $449.95 What would you like to do? 1. Shop 2. See cart 3. Remove items 4. Pay and Exit Enter the number of your choice: 4 Here is what you purchased: Saw $ 23.99 Fedora $ 22.99 Xbox One X $449.95 Total cost: $496.93 Thank you for shopping at The Jungle! MatplotLib/pip3 demonstration video Posted to: Programming Fundamentals Posted on: Tuesday, March 30, 2021 8:17:11 PM CDT Hi. If you are still having trouble installing MatplotLib and configuring pip3 on Windows, check out this video: http://cs.lewisu.edu/~klumpra/2021Spring/pip3.mp4 In it, I run through the process of making sure Python and its associated tools are on your Windows system path. Ray Matplotlib Posted by: Raymond Klump Posted to: Programming Fundamentals Posted on: Monday, March 29, 2021 2:58:03 PM CDT My apologies for the unexpected difficulties we experienced making sure everyone could install Matplotlib. I didn’t realize that, on Windows, some people would have the necessary files in unpredictable places. First – let me give a disclaimer – I’m not going to assign a homework where we use matplotlib. I’m covering matplotlib just because it’s useful and I think at least some of you will find it interesting (i.e. I’m teaching it just because that’s how school should be – show you interesting things). So, with that said, it might not be worth your while to get it installed if you’re not interested in getting it to work. Assuming you do want to get it worked, my best advice – since I can’t predict how everyone has it set up – is to reinstall Python. You’ll see that this page highlights the checkbox to update the path to include python. Make sure it’s checked. Or, if you run the installer to update your current installation, make sure you check the box to “Add python to system environment variables”. Here is the page that describes this: https://stackoverflow.com/questions/13596505/python-not-working-in-command-prompt/54029728#54029728 Once you do reinstall or update, you should be able to open a command prompt and type pip3 install matplotlib. I think this will work for everybody. Ray

Do you have a similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com. We assure you of a well written and plagiarism free papers delivered within your specified deadline.