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 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
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, 05.02.2021 01:30
question
Mathematics, 05.02.2021 01:30
question
Mathematics, 05.02.2021 01:30
question
Mathematics, 05.02.2021 01:30