{"id":115604,"date":"2022-12-07T21:19:42","date_gmt":"2022-12-07T21:19:42","guid":{"rendered":"https:\/\/nursingstudybay.com\/?p=115604"},"modified":"2022-12-07T21:19:47","modified_gmt":"2022-12-07T21:19:47","slug":"section-17-4-omis-449-business-application-development","status":"publish","type":"post","link":"https:\/\/www.studyproessays.com\/help\/section-17-4-omis-449-business-application-development\/","title":{"rendered":"Section 17.4 &#8211; OMIS 449: Business Application Development"},"content":{"rendered":"<p>Section 17.4 &#8211; OMIS 449: Business Application Development<br \/>\nStudents:<br \/>\nThis content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the Trouble with lab button at the bottom of the lab.<br \/>\n17.4 LAB-04<br \/>\n^^^_ This lab will be available until December 4th, 11:59 PM CST<br \/>\nThis program extends the earlier -Online shopping cart- program. (Consider first saving your earlier program).<br \/>\n(1) Extend the ItemToPurchase class to contain a new attribute. (2 pts)<br \/>\n\u2022 item_description (string) &#8211; Set to -none- in default constructor<br \/>\nImplement the following method for the ItemToPurchase class.<br \/>\n\u2022 print_item_description() &#8211; Prints item_description attribute for an ItemToPurchase object. Has an ItemToPurchase parameter.<br \/>\nEx. of print_item_description() output:<br \/>\nBottled Water: Deer Park, 12 oz.<br \/>\n(2) Build the ShoppingCart class with the following data attributes and related methods. Note: Some can be method stubs (empty methods) initially, to be completed in later steps.<br \/>\n\u2022 Parameterized constructor which takes the customer name and date as parameters (2 pts)<br \/>\n\u2022 Attributes<br \/>\no customer_name (string) &#8211; Initialized in default constructor to -none-<br \/>\nc current_date (string) &#8211; Initialized in default constructor to -January 1, 2016-<br \/>\no cart_items (list)<br \/>\n\u2022 Methods<br \/>\no add_item()<br \/>\n\u00a6 Adds an item to cart_items list. Has parameter ItemToPurchase. Does not return anything.<br \/>\no remove_item()<br \/>\n\u00a6 Removes item from cart_items list. Has a string (an items name) parameter. Does not return anything.<br \/>\n\u00a6 If item name cannot be found, output this message: Item not found in cart. Nothing removed.<br \/>\no modify_item()<br \/>\n\u00a6 Modifies an items quantity. Has parameter ItemToPurchase. Does not return anything.<br \/>\n\u00a6 If item can be found (by name) in cart, modify item in cart.<br \/>\n\u00a6 If item cannot be found (by name) in cart, output this message: Item not found in cart. Nothing modified.<br \/>\ng get_num_items_in_cart() (2 pts)<br \/>\n\u00a6 Returns quantity of all items in cart. Has no parameters.<br \/>\no get_cost_of_cart() (2 pts)<br \/>\n\u00a6 Determines and returns the total cost of items in cart. Has no parameters.<br \/>\no print_total()<br \/>\n\u00a6 Outputs total of objects in cart.<br \/>\n\u00a6 If cart is empty, output this message: SHOPPING CART IS EMPTY<br \/>\np print_descriptions()<br \/>\n\u00a6 Outputs each items description.<br \/>\nEx. of print_total() output:<br \/>\nJohn Does Shopping Cart &#8211; February 1, 2016 Number of Items: 8<br \/>\nNike Romaleos 2 @ $189 = $378<br \/>\nChocolate Chips 5 @ $3 = $15<br \/>\nhttps:\/\/webcourses.niu.edu\/ultra\/courses\/_331828_1\/cl\/outline<br \/>\n1\/4<br \/>\n12\/3\/22, 2:18 AM<br \/>\nSection 17.4 &#8211; OMIS 449: Business Application Development<br \/>\nPowerbeats 2 Headphones 1 @ $128 = $128<br \/>\nTotal: $521<br \/>\nEx. of print_descriptions() output:<br \/>\nJohn Does Shopping Cart &#8211; February 1, 2016<br \/>\nItem Descriptions<br \/>\nNike Romaleos: Volt color, Weightlifting shoes Chocolate Chips: Semi-sweet<br \/>\nPowerbeats 2 Headphones: Bluetooth headphones<br \/>\n(3) In main section of your code, prompt the user for a customers name and todays date. Output the name and date. Create an object of type ShoppingCart. (1 pt)<br \/>\nEx.<br \/>\nEnter customers name:<br \/>\nJohn Doe<br \/>\nEnter todays date:<br \/>\nFebruary 1, 2016<br \/>\nCustomer name: John Doe<br \/>\nTodays date: February 1, 2016<br \/>\n(4) In the main section of your code, implement the print_menu() function. print_menu() has a ShoppingCart parameter, and outputs a menu of options to manipulate the shopping cart. Each option is represented by a single character. Build and output the menu within the function.<br \/>\nIf the an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call print_menu() in the main() function. Continue to execute the menu until the user enters q to Quit. (3 pts)<br \/>\nEx:<br \/>\nMENU<br \/>\na &#8211; Add item to cart<br \/>\nr &#8211; Remove item from cart<br \/>\nc &#8211; Change item quantity<br \/>\ni &#8211; Output items descriptions o &#8211; Output shopping cart<br \/>\nq &#8211; Quit<br \/>\nChoose an option:<br \/>\n(5) Implement Output shopping cart menu option. (3 pts)<br \/>\nEx:<br \/>\nOUTPUT SHOPPING CART<br \/>\nJohn Does Shopping Cart &#8211; February 1, 2016<br \/>\nNumber of Items: 8<br \/>\nNike Romaleos 2 @ $189 = $378<br \/>\nChocolate Chips 5 @ $3 = $15 Powerbeats 2 Headphones 1 @ $128 = $128<br \/>\nTotal: $521<br \/>\n(6) Implement Output items description menu option. (2 pts)<br \/>\nhttps:\/\/webcourses.niu.edu\/ultra\/courses\/_331828_1\/cl\/outline<br \/>\n2\/4<br \/>\n12\/3\/22, 2:18 AM Section 17.4 &#8211; OMIS 449: Business Application Development<br \/>\nEx.<br \/>\nOUTPUT ITEMS DESCRIPTIONS<br \/>\nJohn Does Shopping Cart &#8211; February 1, 2016<br \/>\nItem Descriptions<br \/>\nNike Romaleos: Volt color, Weightlifting shoes Chocolate Chips: Semi-sweet<br \/>\nPowerbeats 2 Headphones: Bluetooth headphones<br \/>\n(7) Implement Add item to cart menu option. (3 pts)<br \/>\nEx:<br \/>\nADD ITEM TO CART<br \/>\nEnter the item name:<br \/>\nNike Romaleos<br \/>\nEnter the item description:<br \/>\nVolt color, Weightlifting shoes<br \/>\nEnter the item price: 189<br \/>\nEnter the item quantity:<br \/>\n2<br \/>\n(8) Implement remove item menu option. (4 pts)<br \/>\nEx:<br \/>\nREMOVE ITEM FROM CART<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Section 17.4 &#8211; OMIS 449: Business Application Development Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns\u2026<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9443],"tags":[],"class_list":["post-115604","post","type-post","status-publish","format-standard","hentry","category-phd-dissertation-help-service"],"_links":{"self":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/115604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/comments?post=115604"}],"version-history":[{"count":0,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/115604\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/media?parent=115604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/categories?post=115604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/tags?post=115604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}