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 05:20
Write a program called assignment3 (saved in a file assignment3.java) that computes the greatest common divisor of two given integers. one of the oldest numerical algorithms was described by the greek mathematician, euclid, in 300 b.c. it is a simple but very e↵ective algorithm that computes the greatest common divisor of two given integers. for instance, given integers 24 and 18, the greatest common divisor is 6, because 6 is the largest integer that divides evenly into both 24 and 18. we will denote the greatest common divisor of x and y as gcd(x, y). the algorithm is based on the clever idea that the gcd(x, y) = gcd(x ! y, y) if x > = y and gcd(x, y) = gcd(x, y ! x) if x < y. the algorithm consists of a series of steps (loop iterations) where the “larger” integer is replaced by the di↵erence of the larger and smaller integer. this continues until the two values are equal. that is then the gcd.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
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, 05.05.2020 11:47
question
Social Studies, 05.05.2020 11:47
Questions on the website: 13722360