Software Engineering:Chap. 6 Software Requirements

6.3 Discover the ambiguities or omissions in the following statements of the requriements for the parts of a ticket-issuing system.

An automated ticket-issuing system sells rail tickets. Users Select their desctination and input a credit card and a personal identification number. The rail ticket is issued and there credit card and a personal identification number. The rail ticket is issued and their cradit card account charged. When the user presses the start button, a menu display of potential destinations is activated along with a message to the user to select a destination. Once a destination has been selected, users are requested to input their credit card. Its validity is checked and the user is then requested to input a personal identifier. When the credit trsansaction has been validated, the ticket is issued.

Ans. If a user want to buy multiple tickets,user doesn’t have option.

If user want to cancel tickets, user doesn’t have option.

Users cannot buy tickets with cash.

There was ambiguity in how potential destinations is activated.

6.6 Using the technique suggested here, where natural language is presented in a standard way, writ plausible user requirements for the following function:

♦ 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.

Ans.

Function: Unattended petrol pump system

Description: Validate user card by checking the card number and user pin,then approve requested amount of fuel required.

Input: Swipes credit card for account details, use numpad for specifying the amount of fuel required.

Source: Credit Card reader,numpad on system.

Output: Fuel from nozzle.

Destination: Main Control System.

Acton: Pump the gas. Compute the amount of fuel requested and deduct amount from card. If card was not valid then alert user and cancel the process.

Requires : Credit Card.

Pre condition: Credit card must be a valid one.

Post Condition : Charge the card with requested amount,fuel pumped.

Side effects : None.

Software Engineering:Chap. 14 Object-oriented design

14.1 Explain why adopting an approach to design that is based on loosely coupled objects that hide information about their representation schould lead to design that may be readily modified.

Ans. “Changing the internal details of an object is unlikely to affect any other system objects”. If the objects are loosely coupled “it is usually straightforward to introduce new objects without significant effects on the rest of the system”. These reasons lead to a design that may be readily modified.

14.4 Using the UML graphical notation for object classes, design the following object classes identifying attributes and operations. Use your own experience to decide on the attributes and operations that schould be associated with the objects: A telephone, A printer for a personal computer, a personal stereo system, A bank account, Alibrary catalogue.

Ans.

14.7 Do Sequence diagram for peterol station only.

♦ A petrol (gas) station is to be set up for fully automated operation. Drivers swipe their credit card through a reader connected to the pump; the card is verified by communication with a credit company computer; and a fuel limit is estiablished. The driver may then take the fuel requried. When fuel delivery is complete and the pump hose is returned to its holster, the driver’s credit account is debited with the cost of thr fuel taken. the credit card is returned after debiting. If the card is invalid, the pump returns it before fule is dispensed.

Ans.


Software Engineering:Chap. 16 User Interface Design

16.5 “Discuss the advantages of the graphical information display and suggest four applications where it would be more appropriate to use graphical rather than digital displays of numeric information.”
Ans.
“A constantly changing digital display can be confusing and irritating as readers can’t read and assimilate the information before it changes. Such dynamically varying numeric information is therefore best presented graphically using an analogue representation”.
Graphical presentation of sales information of different months “as a histogram, makes the anomalous figures. Managers studying sales figures are usually more interested in trends or anomalous figures rather than precise values”.
“Graphical display of temperature will show the maximum and minimum values. With only a digital value, the viewer must know the maximum values and mentally compute the relative state of the reading”. The extra thinking time can be reduced by using graphical display.
Four applications :
1. “Weather information, gathered from a number of sources, is shown as a weather map with isobars, weather fronts, and so on .”
2. Summaries the sales information of a company on a monthly basis can us graphical rather than digital display.
3. Representing share values in a period of time in graphical display would be more appropriate than numeric display.
4. Displaying the sale price of producd(s), in stores, supermarkets.
16.6 “What are the guidelines that should be followed when usinf colour in auser interface?”
Ans.
1. “Limit the number of colours employed and be conservative how these are used. You should not use more than four or five separate colours in a window and now more than seven in a system interface”.
2. “Use colour change to show a change in system status. If a display changes a colour this should mean a significant event has occurred”.
3. “Use colour coding to support the task user are trying to perform. If they have to identify anomalous instances, highlight these instances; if similarities are also to be discovered, highlight these using a different colour”.
4. “Use colour coding in a thoughtful and consistent way”.
5. “Be careful about pairings. Because of the physiology of the eye, people cannot focus on red and blue simultaneously”.

Software Engineering:Chap. 7 Requirements engineering processes

7.1 “Suggest who might be stakeholders in a university student record system. Explain why it is almost inevitable that the requirements of different stakeholders will conflict in some way.”
Ans. Stakeholders: Students,Admission Department,Faculty,Academic Adviser,Department of library, Department In-charge, Office of Student Employment.
“Different stakeholder have different requirements, which they may express in different ways”.
“Political factors may influence the requirements of system” and cause conflict.
One of the main reason for conflict was involvement of multiple stakeholders.
7.5 “Using your knowledge of how an ATM is used, develop a set of use-cases that could serve as a basis for understanding the requirements for an atm system.”
(Provide only descriptive names for the use case and sketch a use case diagram.)
Ans.