[Solved] JCV Module 1 Capstone Vending Machine Software

$25

File Name: JCV_Module_1_Capstone__Vending_Machine_Software.zip
File Size: 442.74 KB

SKU: [Solved] JCV Module 1 Capstone – Vending Machine Software Category: Tag:
5/5 - (1 vote)

Youve been asked to develop an application for the newest vending machine distributor, Umbrella Corp. Theyve released a new vending machine (Vendo-Matic 500) that is integrated with everyones bank accounts allowing customers to purchase products right from their computers for convenience sake.

The requirements for the application are listed below:

  1. The vending machine needs to dispense beverages, candy, chips, and gum.
  2. Each vending machine item has a Name and a Price.
  3. A main menu should display when the software is run presenting the following options:
  • Display Vending Machine Items
  • Purchase
  1. Vending machine inventory is stocked via an input file.
  2. The vending machine is automatically restocked each time the application runs.
  3. When the customer selects (1) Display Vending Machine Items they are presented a list of all items in the vending machine with its quantity remaining.
    1. Each vending machine product has a slot identifier and a purchase price.
    2. Each slot in the vending machine has enough room for 5 of that product.
    3. Every product is initially stocked to the maximum amount.
    4. A product which has run out should indicate it is SOLD OUT.
  4. When the customer selects (2) Purchase they are guided through the purchasing process menu:
  • Feed Money
  • Select Product
  • Finish Transaction

Current Money Provided: $2.00

  1. The purchase process flow is as follows
  2. Selecting (1) Feed Money A customer can repeatedly feed money into the machine in whole dollar amounts (e.g. $1, $2, $5, $10).
  3. The Current Money Provided indicates how much money the customer has fed into the machine.
  4. Selecting (2) Select Product allows the customer to select a product to purchase.
  5. If the product code does not exist, the customer is informed and returned to the Purchase menu. ii. If a product is sold out, the customer is informed and returned to the Purchase menu.
    • If a valid product is selected it is dispensed to the customer.
  1. After the product is dispensed, the machine should update its balance accordingly and return the customer to the Purchase menu.
  2. Selecting (3) Finish Transaction allows the customer to complete the transaction and receive any remaining change back.
  3. The customers money is returned using nickels, dimes, and quarters (using the smallest amount of coins possible).
  4. The machines current balance should be updated to $0 remaining.
  • The item(s) will be consumed and a message printed depending on the item type:
    1. All chip items will return Crunch Crunch, Yum!
    2. All candy items will return Munch Munch, Yum!
    3. All drink items will return Glug Glug, Yum!
    4. All gum items will return Chew Chew, Yum! 8. All purchases must be audited to prevent theft from the vending machine
  1. Each purchase should generate a line in a file called txt
  2. The audit entry should be in the format
01/01/2016 12:00:00 PM FEED MONEY: $5.00 $5.00
01/01/2016 12:00:15 PM FEED MONEY: $5.00 $10.00
01/01/2016 12:00:20 PM Crunchie B4 $10.00 $8.50
01/01/2016 12:01:25 PM Cowtales B2 $8.50 $7.50
01/01/2016 12:01:35 PM GIVE CHANGE: $7.50 $0.00

Please provide unit tests demonstrating your code works correctly.

Vending Machine Data File

The input file that stocks the vending machine products is a pipe | delimited file. Each line is a separate product in the file and follows the below format

Column Name Description
Slot Location The slot location in the vending machine where the product is set.
Product Name The display name of the vending machine product
Price The purchase price for the product.

An example input file has been provided with your repository.

Sales Report

The output sales report file is also pipe delimited for consistency. Each line is a separate product with the number of sales for the applicable product. At the end of the report is a blank line followed by **TOTAL SALES** $dollar amount indicating the gross sales from the vending machine.

Example Output

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] JCV Module 1 Capstone  Vending Machine Software[Solved] JCV Module 1 Capstone Vending Machine Software
$25