Example output for CS303e Assignment 13, implementing a Vending Machine class. Give the same inputs, your output shall match the following output exactly. The output does not include the lines with ##### before and after the output. Those lines are to delineate the required output. I strongly recommend you check your output against the expected output using a diff tool such as https://www.diffchecker.com/. Example 1 - Inputs: y, 1212, 10, 2 ##### can dispense: False -- expect False dispense: INSUFFICIENT FUNDS -- expect INSUFFICIENT FUNDS can dispense: True -- expect True dispense: ENJOY -- expect ENJOY can dispense: False -- expect False get change: 5 -- expect 5 get change: 0 -- expect 0 can dispense: True -- expect True dispense: ENJOY -- expect ENJOY can dispense: False -- expect False dispense: EMPTY -- expect EMPTY Money collected when machine refilled: 175 -- expect 175 can dispense: False -- expect False dispense: INSUFFICIENT FUNDS -- expect INSUFFICIENT FUNDS can dispense: True -- expect True dispense: ENJOY -- expect ENJOY dispense: ENJOY -- expect ENJOY get change: 45 -- expect 45 Enter random seed: 1212 Enter the number of operations: 10 Enter the number of machines: 2 ***** STRESS TESTS ***** Machine 0: price = 25, capacity = 3, initial drinks = 1 Machine 1: price = 125, capacity = 6, initial drinks = 4 Operation = 1 Machine = 1 Insert money, amount = 100 Operation = 2 Machine = 0 Insert money, amount = 50 Operation = 3 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 4 Machine = 0 Insert money, amount = 50 Operation = 5 Machine = 1 Insert money, amount = 100 Operation = 6 Machine = 0 Dispense: ENJOY Get change, amount = 75 Operation = 7 Machine = 0 Insert money, amount = 25 Operation = 8 Machine = 0 Can dispense: False Operation = 9 Machine = 0 Dispense: EMPTY Operation = 10 Machine = 0 Insert money, amount = 100 ##### Example 2 - Inputs: y, 105, 5, 2 ##### Run simple tests? y ***** SIMPLE TESTS ***** can dispense: False -- expect False dispense: INSUFFICIENT FUNDS -- expect INSUFFICIENT FUNDS can dispense: True -- expect True dispense: ENJOY -- expect ENJOY can dispense: False -- expect False get change: 5 -- expect 5 get change: 0 -- expect 0 can dispense: True -- expect True dispense: ENJOY -- expect ENJOY can dispense: False -- expect False dispense: EMPTY -- expect EMPTY Money collected when machine refilled: 175 -- expect 175 can dispense: False -- expect False dispense: INSUFFICIENT FUNDS -- expect INSUFFICIENT FUNDS can dispense: True -- expect True dispense: ENJOY -- expect ENJOY dispense: ENJOY -- expect ENJOY get change: 45 -- expect 45 Enter random seed: 105 Enter the number of operations: 5 Enter the number of machines: 2 ***** STRESS TESTS ***** Machine 0: price = 25, capacity = 3, initial drinks = 1 Machine 1: price = 150, capacity = 3, initial drinks = 0 Operation = 1 Machine = 1 Can dispense: False Operation = 2 Machine = 1 Insert money, amount = 10 Operation = 3 Machine = 1 Insert money, amount = 10 Operation = 4 Machine = 0 Dispense: INSUFFICIENT FUNDS Operation = 5 Machine = 1 Insert money, amount = 10 ##### Example 3 - Inputs: n, 3742, 50, 4 ##### RRun simple tests? n Enter random seed: 3754 Enter the number of operations: 50 Enter the number of machines: 4 ***** STRESS TESTS ***** Machine 0: price = 25, capacity = 3, initial drinks = 1 Machine 1: price = 200, capacity = 10, initial drinks = 4 Machine 2: price = 100, capacity = 4, initial drinks = 0 Machine 3: price = 50, capacity = 6, initial drinks = 0 Operation = 1 Machine = 1 Insert money, amount = 10 Operation = 2 Machine = 3 Insert money, amount = 5 Operation = 3 Machine = 3 Insert money, amount = 25 Operation = 4 Machine = 1 Insert money, amount = 100 Operation = 5 Machine = 2 Dispense: EMPTY Operation = 6 Machine = 3 Dispense: EMPTY Operation = 7 Machine = 2 Insert money, amount = 10 Operation = 8 Machine = 0 Insert money, amount = 5 Operation = 9 Machine = 2 Insert money, amount = 50 Operation = 10 Machine = 1 Insert money, amount = 5 Operation = 11 Machine = 3 Insert money, amount = 50 Operation = 12 Machine = 3 Can dispense: False Operation = 13 Machine = 2 Insert money, amount = 10 Operation = 14 Machine = 1 Insert money, amount = 50 Operation = 15 Machine = 1 Can dispense: False Operation = 16 Machine = 3 Insert money, amount = 50 Operation = 17 Machine = 1 Insert money, amount = 50 Operation = 18 Machine = 0 Insert money, amount = 100 Operation = 19 Machine = 3 Insert money, amount = 50 Operation = 20 Machine = 1 Dispense: ENJOY Get change, amount = 15 Operation = 21 Machine = 1 Insert money, amount = 50 Operation = 22 Machine = 2 Can dispense: False Operation = 23 Machine = 2 Dispense: EMPTY Operation = 24 Machine = 3 Insert money, amount = 50 Operation = 25 Machine = 1 Insert money, amount = 10 Operation = 26 Machine = 0 Insert money, amount = 25 Operation = 27 Machine = 0 Dispense: ENJOY Forgot change after dispense. Operation = 28 Machine = 0 Insert money, amount = 100 Operation = 29 Machine = 3 Insert money, amount = 10 Operation = 30 Machine = 0 Insert money, amount = 5 Operation = 31 Machine = 1 Insert money, amount = 10 Operation = 32 Machine = 0 Insert money, amount = 25 Operation = 33 Machine = 1 Insert money, amount = 25 Operation = 34 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 35 Machine = 0 Insert money, amount = 50 Operation = 36 Machine = 2 Insert money, amount = 5 Operation = 37 Machine = 3 Insert money, amount = 25 Operation = 38 Machine = 0 Dispense: EMPTY Operation = 39 Machine = 2 Insert money, amount = 5 Operation = 40 Machine = 2 Insert money, amount = 25 Operation = 41 Machine = 2 Dispense: EMPTY Operation = 42 Machine = 3 Insert money, amount = 50 Operation = 43 Machine = 3 Dispense: EMPTY Operation = 44 Machine = 1 Insert money, amount = 100 Operation = 45 Machine = 0 Can dispense: False Operation = 46 Machine = 1 Can dispense: False Operation = 47 Machine = 1 Insert money, amount = 25 Operation = 48 Machine = 0 Can dispense: False Operation = 49 Machine = 0 Insert money, amount = 25 Operation = 50 Machine = 1 Can dispense: True ##### Example 4 - Inputs: n, 105, 50, 2 ##### Run simple tests? n Enter random seed: 105 Enter the number of operations: 50 Enter the number of machines: 2 ***** STRESS TESTS ***** Machine 0: price = 25, capacity = 3, initial drinks = 1 Machine 1: price = 150, capacity = 3, initial drinks = 0 Operation = 1 Machine = 1 Can dispense: False Operation = 2 Machine = 1 Insert money, amount = 10 Operation = 3 Machine = 1 Insert money, amount = 10 Operation = 4 Machine = 0 Dispense: INSUFFICIENT FUNDS Operation = 5 Machine = 1 Insert money, amount = 10 Operation = 6 Machine = 1 Dispense: EMPTY Operation = 7 Machine = 1 Can dispense: False Operation = 8 Machine = 1 Dispense: EMPTY Operation = 9 Machine = 0 Dispense: INSUFFICIENT FUNDS Operation = 10 Machine = 0 Dispense: INSUFFICIENT FUNDS Operation = 11 Machine = 1 Can dispense: False Operation = 12 Machine = 1 Insert money, amount = 25 Operation = 13 Machine = 0 Insert money, amount = 10 Operation = 14 Machine = 1 Can dispense: False Operation = 15 Machine = 1 Dispense: EMPTY Operation = 16 Machine = 1 Dispense: EMPTY Operation = 17 Machine = 1 Can dispense: False Operation = 18 Machine = 0 Can dispense: False Operation = 19 Machine = 1 Insert money, amount = 25 Operation = 20 Machine = 1 Can dispense: False Operation = 21 Machine = 0 Insert money, amount = 100 Operation = 22 Machine = 1 Insert money, amount = 25 Operation = 23 Machine = 0 Can dispense: True Operation = 24 Machine = 0 Insert money, amount = 5 Operation = 25 Machine = 0 Insert money, amount = 50 Operation = 26 Machine = 1 Refill. Money collected when refilled: 105 Operation = 27 Machine = 0 Dispense: ENJOY Get change, amount = 140 Operation = 28 Machine = 0 Dispense: EMPTY Operation = 29 Machine = 0 Insert money, amount = 100 Operation = 30 Machine = 1 Insert money, amount = 10 Operation = 31 Machine = 1 Insert money, amount = 25 Operation = 32 Machine = 0 Insert money, amount = 5 Operation = 33 Machine = 1 Insert money, amount = 50 Operation = 34 Machine = 1 Insert money, amount = 10 Operation = 35 Machine = 0 Insert money, amount = 10 Operation = 36 Machine = 0 Get change, amount = 115 Operation = 37 Machine = 0 Insert money, amount = 10 Operation = 38 Machine = 0 Dispense: EMPTY Operation = 39 Machine = 1 Insert money, amount = 5 Operation = 40 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 41 Machine = 1 Get change, amount = 100 Operation = 42 Machine = 0 Dispense: EMPTY Operation = 43 Machine = 0 Dispense: EMPTY Operation = 44 Machine = 0 Get change, amount = 10 Operation = 45 Machine = 0 Can dispense: False Operation = 46 Machine = 0 Dispense: EMPTY Operation = 47 Machine = 1 Insert money, amount = 10 Operation = 48 Machine = 1 Insert money, amount = 25 Operation = 49 Machine = 0 Insert money, amount = 25 Operation = 50 Machine = 1 Insert money, amount = 5 ##### Example 5 - Inputs: n, 73, 100, 5 ##### Run simple tests? n Enter random seed: 73 Enter the number of operations: 100 Enter the number of machines: 5 ***** STRESS TESTS ***** Machine 0: price = 25, capacity = 3, initial drinks = 1 Machine 1: price = 125, capacity = 3, initial drinks = 3 Machine 2: price = 75, capacity = 9, initial drinks = 4 Machine 3: price = 50, capacity = 9, initial drinks = 6 Machine 4: price = 100, capacity = 9, initial drinks = 1 Operation = 1 Machine = 0 Insert money, amount = 50 Operation = 2 Machine = 0 Insert money, amount = 25 Operation = 3 Machine = 4 Insert money, amount = 50 Operation = 4 Machine = 4 Can dispense: False Operation = 5 Machine = 1 Insert money, amount = 25 Operation = 6 Machine = 4 Dispense: INSUFFICIENT FUNDS Operation = 7 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 8 Machine = 0 Can dispense: True Operation = 9 Machine = 2 Insert money, amount = 10 Operation = 10 Machine = 1 Insert money, amount = 10 Operation = 11 Machine = 2 Insert money, amount = 5 Operation = 12 Machine = 1 Can dispense: False Operation = 13 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 14 Machine = 3 Insert money, amount = 5 Operation = 15 Machine = 0 Dispense: ENJOY Get change, amount = 50 Operation = 16 Machine = 1 Can dispense: False Operation = 17 Machine = 1 Can dispense: False Operation = 18 Machine = 3 Get change, amount = 5 Operation = 19 Machine = 3 Dispense: INSUFFICIENT FUNDS Operation = 20 Machine = 4 Insert money, amount = 25 Operation = 21 Machine = 2 Insert money, amount = 5 Operation = 22 Machine = 3 Insert money, amount = 50 Operation = 23 Machine = 3 Insert money, amount = 5 Operation = 24 Machine = 2 Insert money, amount = 10 Operation = 25 Machine = 2 Refill. Money collected when refilled: 30 Operation = 26 Machine = 3 Insert money, amount = 10 Operation = 27 Machine = 1 Insert money, amount = 100 Operation = 28 Machine = 2 Insert money, amount = 50 Operation = 29 Machine = 2 Dispense: INSUFFICIENT FUNDS Operation = 30 Machine = 3 Insert money, amount = 50 Operation = 31 Machine = 0 Dispense: EMPTY Operation = 32 Machine = 0 Insert money, amount = 25 Operation = 33 Machine = 4 Can dispense: False Operation = 34 Machine = 4 Insert money, amount = 10 Operation = 35 Machine = 2 Insert money, amount = 10 Operation = 36 Machine = 0 Insert money, amount = 25 Operation = 37 Machine = 1 Dispense: ENJOY Get change, amount = 10 Operation = 38 Machine = 3 Insert money, amount = 100 Operation = 39 Machine = 4 Insert money, amount = 100 Operation = 40 Machine = 1 Insert money, amount = 10 Operation = 41 Machine = 1 Can dispense: False Operation = 42 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 43 Machine = 3 Insert money, amount = 50 Operation = 44 Machine = 0 Insert money, amount = 100 Operation = 45 Machine = 3 Insert money, amount = 100 Operation = 46 Machine = 3 Insert money, amount = 10 Operation = 47 Machine = 2 Get change, amount = 60 Operation = 48 Machine = 3 Insert money, amount = 10 Operation = 49 Machine = 3 Insert money, amount = 50 Operation = 50 Machine = 3 Insert money, amount = 50 Operation = 51 Machine = 2 Insert money, amount = 100 Operation = 52 Machine = 0 Insert money, amount = 25 Operation = 53 Machine = 0 Insert money, amount = 100 Operation = 54 Machine = 4 Can dispense: True Operation = 55 Machine = 4 Dispense: ENJOY Get change, amount = 85 Operation = 56 Machine = 4 Insert money, amount = 25 Operation = 57 Machine = 4 Insert money, amount = 50 Operation = 58 Machine = 3 Insert money, amount = 5 Operation = 59 Machine = 0 Insert money, amount = 100 Operation = 60 Machine = 0 Insert money, amount = 25 Operation = 61 Machine = 1 Insert money, amount = 50 Operation = 62 Machine = 4 Refill. Money collected when refilled: 175 Operation = 63 Machine = 2 Insert money, amount = 5 Operation = 64 Machine = 4 Can dispense: False Operation = 65 Machine = 2 Get change, amount = 105 Operation = 66 Machine = 3 Dispense: ENJOY Get change, amount = 440 Operation = 67 Machine = 0 Insert money, amount = 25 Operation = 68 Machine = 4 Dispense: INSUFFICIENT FUNDS Operation = 69 Machine = 0 Insert money, amount = 50 Operation = 70 Machine = 4 Get change, amount = 0 Operation = 71 Machine = 4 Insert money, amount = 10 Operation = 72 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 73 Machine = 0 Insert money, amount = 25 Operation = 74 Machine = 4 Insert money, amount = 100 Operation = 75 Machine = 3 Insert money, amount = 5 Operation = 76 Machine = 3 Insert money, amount = 50 Operation = 77 Machine = 2 Can dispense: False Operation = 78 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 79 Machine = 1 Insert money, amount = 10 Operation = 80 Machine = 4 Insert money, amount = 10 Operation = 81 Machine = 1 Insert money, amount = 5 Operation = 82 Machine = 4 Insert money, amount = 10 Operation = 83 Machine = 3 Dispense: ENJOY Get change, amount = 5 Operation = 84 Machine = 1 Can dispense: False Operation = 85 Machine = 3 Insert money, amount = 10 Operation = 86 Machine = 4 Dispense: ENJOY Get change, amount = 30 Operation = 87 Machine = 0 Insert money, amount = 10 Operation = 88 Machine = 1 Insert money, amount = 25 Operation = 89 Machine = 1 Dispense: INSUFFICIENT FUNDS Operation = 90 Machine = 1 Insert money, amount = 25 Operation = 91 Machine = 3 Insert money, amount = 10 Operation = 92 Machine = 4 Can dispense: False Operation = 93 Machine = 2 Insert money, amount = 50 Operation = 94 Machine = 4 Insert money, amount = 50 Operation = 95 Machine = 2 Insert money, amount = 50 Operation = 96 Machine = 1 Insert money, amount = 25 Operation = 97 Machine = 4 Insert money, amount = 10 Operation = 98 Machine = 3 Can dispense: False Operation = 99 Machine = 4 Can dispense: False Operation = 100 Machine = 3 Insert money, amount = 5 #####