SHARE
TWEET

Untitled

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