Вы находитесь на странице: 1из 3

Assignment Solution 4.

1 Software Requirements are divided into four categories


System Requirements User Requirements Functional requirements Non-functional requirements

User Requirement: Statements in natural language plus diagrams of the services the system provides and its operational constraints. These are written for customers. System Requirements: A structured document setting out detailed descriptions of the systems functions, services and operational constraints. Defines what should be implemented so may be part of a contract between client and contractor. Function Requirements: a functional requirement defines a function of a software system or its component. A function is described as a set of inputs, the behavior, and outputs. Functional requirements may be calculations, technical details, data manipulation and processing and other specific functionality that define what a system is supposed to accomplish. Non-Functional Requirements: Non-functional requirements define the overall qualities or attributes of the resulting system. It place restrictions on the product being developed, the development process, and specify external constraints that the product must meet. Examples are safety, security, usability, reliability and performance requirements.

4.4

Write a set of non-functional requirements for the ticket issuing system, setting out its expected reliability and its response time? 1. The ticket system shall respond to user inputs to provide tickets and charge accounts in a timely manner. 2. The system shall continue to function so long as roll of ticket paper is in the machine, and a network connection is provided for the destination database and credit transactions. 3. Upon receipt of the destination from the user, the database shall be accessed to determine the distance from the units location, to the desired destination, and calculate the appropriate fee. 4. The unit shall then prompt the user to input their card information, and the unit shall verify that the card is a credit card, is valid, and has sufficient credit to be charged. 5. Upon successful verification, the unit shall print a ticket, and return to its ready state, for the next transaction to take place. 6. The reliability this system relies on the durability of the physical user interface, the network connection in the area the system is placed, the size of the ticket rolls that the unit can accept, and the mechanism for dispensing the tickets. 7. The estimated time for a complete transaction would be about thirty seconds, giving twenty for the user interactions, five for validation and verification of the users account, and five for printing and dispensing the ticket. 4.5
An unattended petrol (gas) pump system that includes a credit card reader. The customer swipes the card through the reader and then specifies the amount of fuel required. The fuel is delivered and the customers account debited.

1. The user shall be prompted to swipe their credit card, and enter their PIN. 2. Upon verification of the card, the user shall be prompted to select the octane level of their fuel, and enter a desired amount requested in dollars. 3. Pumping shall be unlocked until the fuel-cutoff is engaged, or the predetermined amount of money worth of has been deployed. 4. In the event of the fuel cutoff engaging, any remaining money shall be refunded to the users credit account. The cash dispensing function in a bank ATM. 1. The user shall enter their bank card in the slot provided. 2. Following the appropriate prompts for a cash withdrawal, the user shall enter the requested amount. 3. If the amount requested is not greater than the amount in the account, cash shall be dispensed, and the card shall be returned.

The spelling check and correcting function in a word processor.

1. When the user enters a word, separated by any white space or punctuation, the spelling of said word shall be checked against an existing database. 2. If the word is not found, the user shall be notified that the word is incorrect. 3. If the user so chooses to correct the misspelled word, a list of closely matched words shall be provided for the user. 4. If the user chooses a word given, it shall be replaced and the notification of the misspelled word shall be removed.