Preview

Vending Machine Requirement

Good Essays
Open Document
Open Document
369 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Vending Machine Requirement
CptS 580.1/483.1 Software Specification and Analysis

HW3 1. The vending machine (VMC) system requirements are as follows: The VMC dispenses goods: (1) very large candy (VC) at 15¢, (2) large candy (LC) at 10¢, and (3) a small candy (SC) at 5¢. The vending machine only deals in nickels, and dimes. The VMC gives the proper change after the product selection is made. The VMC must tabulate the amount being deposited. The following rule applies to the VMC’s behavior: a) The VMC remains idle until a customer or owner begins to interact with the VMC. When a selection button is depressed the VMC indicates the required amount needed. b) If the full amount needed has been deposited then dispense the proper candy and display: Thank You!. c) If an insufficient amount (possibly zero) has been deposited then display: remaining amount needed. d) If an over amount has been deposited then dispense the proper candy and change and display: Thank You!. e) Finally, there is a special selection that will allow the customer to get a refund of all the deposited money (coin return). Thus, once the customer deposits coins and makes a selection that matches the amount deposited (or more) the candy is dispensed and he/she will retrieve the candy and change (if applicable). The VMC owner unlocks the VMC to stock the candy and the change and retrieves the profits from the money bin. Once the maintenance activities are completed, the owner will lock the VMC. Selection means that a button is selected / deselected. Given the system requirements (above) for a vending machine, describe the system using Zed.
Vending Machine Maintenance
Key extract Deposit coin(s) Key insert

Tabulate
U = Under amount C = Correct amount O = Over amount S = Select small candy M = Select medium candy L = Select large candy

Idle
Select

U S/M /L
Deselect Retrieve candy (and change)

Tabulate
Select

Star t .10 $ .10 S C

.05

$ .05 .10

Under amount

.05

Display msg: AMOUNT NEEDED IS: $XX

You May Also Find These Documents Helpful

  • Good Essays

    4. I drew 5 pencil dots along the line I just made about .5 cm apart. Then I labeled the candy to the dots (O-orange, Y-yellow, G-green, R-red, P-purple).…

    • 815 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    IT 210-Final Currency Conversion Program Florence Sanders IT/210 Fundamentals of Programming with Algorithms and Logic September 16, 2012 Ed Addison Application-Level Requirements List 1. User screen that prompts user 2. Display prompts main user title screen 3. Main user screen provides short description explaining use of program 4. Calculations of currency is executed with valid inputs 5.…

    • 1386 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    Design a program that calculates the total amount of meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales tax. Display each of these amounts and the total.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Business Systems Analysis

    • 394 Words
    • 2 Pages

    16. The owner of two pizza parlors located in adjacent towns wants to computerize and integrate sales transactions and inventory management within and between both stores. The point-of-sale component must be easy to use and flexible enough to accommodate a variety of pricing strategies and coupons. The inventory management, which will be linked to the point-of-sale component, must also be easy to use and fast. The systems at each store need to be linked so that sales and inventory levels can be determined instantly for each store and for both stores combined. The owner can allocate $40,000 for hardware and $20,000 for software and must have the new system operational in three months. Training must be short and easy. Briefly describe three alternative systems for this situation and explain how each would meet the requirements and…

    • 394 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    diversity lab

    • 554 Words
    • 5 Pages

    in each bag. Assign a letter to each color of chocolate candies and fruit candies, and…

    • 554 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Plant and Diversity Index

    • 482 Words
    • 2 Pages

    1. Pour each bag of candy into a separate container or dish so you can see all the colors in each bag. Assign a letter to each color of chocolate candies and fruit candies and record your key.…

    • 482 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Vending Machines are a terrible idea. Vending machines are terrible for the fact that they require maintenance to keep running, They require a lot of people to spend their money at one in order to even potentially turn a profit.…

    • 339 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Management Examination

    • 679 Words
    • 4 Pages

    1. Dello is a world-class PC company. Management believes that they understand their products and customers better than any outsourcing company; therefore Dello should provide customer service in-house. Ideally, Dello’s customer service department wants to handle all the customer phone calls. During peak hours, however, Dello receives so many customer calls that they ask an outsourcing company, Telemate, to help handle incoming calls. Dello’s switchboard system is programmed in the following way; A customer calls Dello at its 1-800 number. If there are 14 or less callers in the system waiting to speak with one of the customer service representatives, then the call stays within Dello’s system and the customer inquiry will be answered by a Dello customer service representative. If, on the other hand, there are 15 or more calls waiting within Dello’s system, then the incoming call is forwarded to the outsourcer Telemate, and the call will be answered by a Telemate agent.…

    • 679 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CHP 3 HW

    • 322 Words
    • 2 Pages

    Processes: Jill enters this transaction in the cash register and gives it to her manager. The data is from one person to another person.…

    • 322 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Coca Cola, the world's largest beverage company, has been under a tremendous amount of media scrutiny lately. Word got out that Coke is testing a new vending machine technology that changes price based on weather conditions.…

    • 634 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Robot and Speed Limit

    • 575 Words
    • 3 Pages

    drawer and calculates the total value of the money in the drawer. So for example, if the…

    • 575 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    5. How far this system could ensure the different payroll calculations proficiently and generate the desired and precise payroll transaction outputs?…

    • 2063 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    My system can provide many benefits since it is automated and user machine operated software system. The said system can do many things even its in idle mode, many point of sale system are created everyday. But for my point of sale system for the eatery itself, It will be different and will gain trust to other store owners because of its accurate computing feature and saving every moment of the system while its idle or being used by a user.…

    • 2229 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Cwa Test Paper

    • 2477 Words
    • 10 Pages

    (c) Choose the correct answer from the answers given for each of the following questions. Indicate workings briefly : (i) A worker has a time rate of Rs. 15/hr. He makes 720 units of a component (standard time:5 minutes/unit in a week of 48 hours. His total wages including Rowan bonus for the week is —————. (A) Rs. 792 (B) Rs. 820 (C) Rs. 840 (D) Rs. 864. (ii) A television company manufactures several components in batches. The following data relates to on component : Annual demand : 32,000 units; Set-up cost per batch : Rs. 120. Annual rate of interest : 12%; Cost of production per unit : Rs. 16. The Economic Batch Quantity is ___________ units (A) 2,500 (B) 4,000 (C) 3,000 (D) 2,000 (iii) A company has annual turnover of Rs. 200 lakhs and an average C/S…

    • 2477 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Oopp Lab Work

    • 1489 Words
    • 6 Pages

    CSE219 OBJECT – ORIENTED PROGRAMMING LAB Cycle Sheet – I 1. Create a class that registers your details by taking reg.no, name, age and mail id. Create a function that prevents duplicate entries of objects based on reg.no. (b) 2. Create a class account that maintains acc_no, name, and balance. Perform deposit, withdrawal and statement print operations. (statement print must print all the transactions that has taken place so for – use structures inside the class to maintain the details about transactions)(b) -----------------------------------------------------------------------------------------------------3. Create a class that holds the details of the mobile phone like brand, imei, no of sim cards, phone numbers etc.,. Allow user to login with their mobile no. Use a function that sends a message from that mobile. Maintain the details of the message as a static member inside the send message function and display each time all the messages sent from that mobile. (b) 4. Create a class ID_card that maintains the details in an ID card. Perform insert, update, delete and display operation through functions that takes input through reference parameter. (c) ----------------------------------------------------------------------------------------------------5. Create a C++ program that takes employee details like ID, first name, last name, age and address. Create a class for student {name, course, regular/parttime, address}. Use friend function to check that a student with same name and address can’t be a regular student as well as an employee. (c) 6. Synthesize a C++ program that has two classes (one for employee and one for student), have a separate class for address (with door no, street name, city, state) and reuse address both for employee and student. Perform insert, delete and display operations by taking choice of person (employee or student) from the user. Allow user to have more than one address also. (c)…

    • 1489 Words
    • 6 Pages
    Good Essays

Related Topics