Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 This program supports 4 functions:
- 2 1. Set Up Shop
- 3 2. Buy
- 4 3. List Items
- 5 4. Checkout
- 6 Please choose the function you want: 1
- 7 Please enter the number of items to setup shop: 3
- 8
- 9 Enter the name of the 1st product: alpha
- 10 Enter the per package price of alpha: 10
- 11 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for alpha, or 0 if no Special Discount offered: 1
- 12 Enter the name of the 2nd product: beta
- 13 Enter the per package price of beta: 20
- 14 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for beta, or 0 if no Special Discount offered: 2
- 15 Enter the name of the 3rd product: gamma
- 16 Enter the per package price of gamma: 30
- 17 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for gamma, or 0 if no Special Discount offered: 3
- 18
- 19 Enter the dollar amount to qualify for Additional Discount (or 0 if none offered): 0
- 20
- 21 This program supports 4 functions:
- 22 1. Set Up Shop
- 23 2. Buy
- 24 3. List Items
- 25 4. Checkout
- 26 Please choose the function you want: 2
- 27
- 28 Enter the number of alpha packages to buy: 0
- 29 Enter the number of beta packages to buy: 0
- 30 Enter the number of gamma packages to buy: 0
- 31
- 32 This program supports 4 functions:
- 33 1. Set Up Shop
- 34 2. Buy
- 35 3. List Items
- 36 4. Checkout
- 37 Please choose the function you want: 3
- 38
- 39 No items were purchased.
- 40
- 41 This program supports 4 functions:
- 42 1. Set Up Shop
- 43 2. Buy
- 44 3. List Items
- 45 4. Checkout
- 46 Please choose the function you want: 2
- 4748 Enter the number of alpha packages to buy: 1
- 49 Enter the number of beta packages to buy: 1
- 50 Enter the number of gamma packages to buy: 1
- 51
- 52 This program supports 4 functions:
- 53 1. Set Up Shop
- 54 2. Buy
- 55 3. List Items
- 56 4. Checkout
- 57 Please choose the function you want: 3
- 58
- 59 1 package of alpha @ $10.00 per pkg = $10.00
- 60 1 package of beta @ $20.00 per pkg = $20.00
- 61 1 package of gamma @ $30.00 per pkg = $30.00
- 62
- 63 This program supports 4 functions:
- 64 1. Set Up Shop
- 65 2. Buy
- 66 3. List Items
- 67 4. Checkout
- 68 Please choose the function you want: 4
- 69
- 70 Original Sub Total: $60.00
- 71 No Special Discounts applied
- 72 New Sub Total: $60.00
- 73 You did not qualify for an Additional Discount
- 74 Final Sub Total: $60.00
- 75
- 76 Thanks for coming!
- 77
- 78 -------------------------------------------------
- 79 Would you like to re-run (1 for yes, 0 for no)? 1
- 80 -------------------------------------------------
- 81
- 82 This program supports 4 functions:
- 83 1. Set Up Shop
- 84 2. Buy
- 85 3. List Items
- 86 4. Checkout
- 87 Please choose the function you want: 2
- 88
- 89 Shop is not set up yet!
- 90
- 91 This program supports 4 functions:
- 92 1. Set Up Shop
- 93 2. Buy
- 94 3. List Items
- 95 4. Checkout
- 96 Please choose the function you want: 1
- 97 Please enter the number of items to setup shop: 2
- 98
- 99Enter the name of the 1st product: gamma
- 100 Enter the per package price of gamma: 40
- 101 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for gamma, or 0 if no Special Discount offered: 4
- 102 Enter the name of the 2nd product: delta
- 103 Enter the per package price of delta: 50
- 104 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for delta, or 0 if no Special Discount offered: 5
- 105
- 106 Enter the dollar amount to qualify for Additonal Discount (or 0 if none offered): 200
- 107 Enter the Additonal Discount rate (e.g., 0.1 for 10%): .3
- 108 This program supports 4 functions:
- 109 1. Set Up Shop
- 110 2. Buy
- 111 3. List Items
- 112 4. Checkout
- 113 Please choose the function you want: 2
- 114
- 115 Enter the number of gamma packages to buy: -4
- 116 Invalid input. Enter a value >= 0: -2
- 117 Invalid input. Enter a value >= 0: 12
- 118 Enter the number of delta packages to buy: -5
- 119 Invalid input. Enter a value >= 0: 15
- 120
- 121 This program supports 4 functions:
- 122 1. Set Up Shop
- 123 2. Buy
- 124 3. List Items
- 125 4. Checkout
- 126 Please choose the function you want: 1
- 127 Please enter the number of items to setup shop: 3
- 128
- 129 Enter the name of the 1st product: gamma
- 130 Enter the per package price of gamma: 11.50
- 131 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for gamma, or 0 if no Special Discount offered: 4
- 132 Enter the name of the 2nd product: delta
- 133 Enter the per package price of delta: 14.43
- 134 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for delta, or 0 if no Special Discount offered: 5
- 135 Enter the name of the 3rd product: epsilon
- 136 Enter the per package price of epsilon: 2.25
- 137 Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free)
- for epsilon, or 0 if no Special Discount offered: 6
- 138
- 139 Enter the dollar amount to qualify for Additonal Discount (or 0 if none offered): 100
- 140 Enter the Additonal Discount rate (e.g., 0.1 for 10%): .25
- 141
- 142 This program supports 4 functions:
- 143 1. Set Up Shop
- 144 2. Buy
- 145 3. List Items
- 146 4. Checkout
- 147 Please choose the function you want: 2
- 148
- 149 Enter the number of gamma packages to buy: 12
- 150 Enter the number of delta packages to buy: 14
- 151 Enter the number of epsilon packages to buy: 20
- 152
- 153 This program supports 4 functions:
- 154 1. Set Up Shop
- 155 2. Buy
- 156 3. List Items
- 157 4. Checkout
- 158 Please choose the function you want: 3
- 159
- 160 12 packages of gamma @ $11.50 per pkg = $138.00
- 161 14 packages of delta @ $14.43 per pkg = $202.02
- 162 20 packages of epsilon @ $2.25 per pkg = $45.00
- 164 This program supports 4 functions:
- 165 1. Set Up Shop
- 166 2. Buy
- 167 3. List Items
- 168 4. Checkout
- 169 Please choose the function you want: 4
- 170
- 171 Original Sub Total: $385.02
- 172 Special Discounts: -$56.36
- 173 New Sub Total: $328.66
- 174 Additional 25% Discount: -$82.16
- 175 Final Sub Total: $246.49
- 176
- 177 Thanks for coming!
- 178
- 179 -------------------------------------------------
- 180 Would you like to re-run (1 for yes, 0 for no)? 0
- 181 -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement