subject

Grub by Air has accepted you bid to develop the App for them and has contracted with your company to develop then next class in the project This program extends the earlier "Grub by Air" program you developed in assignment 9.16. Copy your itemToPurchase class from your earlier program. In addition, portions of your code from the main section of 9.16 can be moved into this assignment. (1) Build an Order class with the following data attributes and related methods. Note Methods remove_item(), modify_item(), and place_order() can be method stubs (empty methods - use pass), to be completed in later steps . Parameterized constructor which takes the customer name and a date as parameters • Attributes customer_name (string) - Initialized in constructor using parameter with default 'none o order_date (string) - Initialized in constructor using parameter with default of January 1, 2020 . items_to_purchase (list) - Initialized in the constructor to an empty list, does NOT use a parameter • Methods o add_item(item, quantity) • Creates and adds an Item To Purchase to items_to_purchase list. Has parameter Item and quantity. Does not return anything o remove_item(index) Removes item from tems_to_purchase list. Has an index parameter. Does not return anything, o modify_item(index, quantity) . Modifies the quantity of an ItemToPurchase. Has parameter index and quantity. Does not return anything o get_num_items() . Returns quantity of all items in tems to purchase list. Has no parameters get_total_costo • Determines and returns the total cost of all items in the order. Has no parameters o print_ordero • Outputs the complete order as shown in the example below. . If number of items is zero then print "ORDER IS EMPTY o place_ordero . print_order) . Outputs the complete order as shown in the example below. • If number of items is zero then print "ORDER IS EMPTY place_ordero .Write the output to a file using result of this f string as the name PORDER (self. customer_name) (self. order_date)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
Grub by Air has accepted you bid to develop the App for them and has contracted with your company to...
Questions
question
Mathematics, 28.09.2020 07:01
question
Mathematics, 28.09.2020 07:01
question
Chemistry, 28.09.2020 07:01
question
Mathematics, 28.09.2020 07:01
Questions on the website: 13722362