0% found this document useful (0 votes)
59 views5 pages

University of Zimbabwe: B.Sc. Electrical Engineering (Honours) Part 2

The document contains 7 questions related to software engineering for an electrical engineering exam. Question 1 involves expressing landing gear deployment conditions for an aircraft as a Java program and UML activity diagram. It also asks to identify possible test items and equivalence classes. Question 2 asks about software project risks and design goals of client-server and n-tier architectures. The remaining questions involve topics like software testing types, requirements specifications, state diagrams, class diagrams, and representing industrial robot characteristics using class diagrams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views5 pages

University of Zimbabwe: B.Sc. Electrical Engineering (Honours) Part 2

The document contains 7 questions related to software engineering for an electrical engineering exam. Question 1 involves expressing landing gear deployment conditions for an aircraft as a Java program and UML activity diagram. It also asks to identify possible test items and equivalence classes. Question 2 asks about software project risks and design goals of client-server and n-tier architectures. The remaining questions involve topics like software testing types, requirements specifications, state diagrams, class diagrams, and representing industrial robot characteristics using class diagrams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

1

UNIVERSITY OF ZIMBABWE

B.Sc. ELECTRICAL ENGINEERING (HONOURS) PART 2

SOFTWARE ENGINEERING EE207

FINAL EXAMINATION, AUGUST 2010

TIME ALLOWED : 3 HOURS

This paper has seven questions on five printed pages.

ANSWER ANY FIVE QUESTIONS

QUESTION 1

The following is part of the control software requirements for the deployment of an
aircraft landing gear.
The landing gear must be deployed whenever the plane is within 2 minutes from
landing or takeoff, or within 600 metres from the ground. If visibility is less than 300
metres, then the landing gear must be deployed whenever the plane is within 3 minutes
from landing or lower than 800 metres .

a) Express the landing gear deployment conditions as a ‘java’ program expression


[4
marks]
b) Express the landing gear deployment algorithm as an UML activity diagram
[8 marks]
c) Identify four possible control software test items and their test equivalence classes
[8
marks]

QUESTION 2

a) Identify four software project risks that necessitates an engineering approach to


software projects. [8 marks]
b) Explain the design goals and the layer functions
i) the Client –Server [4 marks]
ii) N-tier system architectures [8 marks]
2

QUESTION 3

a) Define each of
I. Functional testing
II. Structural testing
III. Testing in the large
IV. Testing in the small [8 marks]

b) A tank liquid level control system is reads two sensors, one which is activated when
the upper liquid level limit is breached and another which is activated when the lower
liquid level is breached . An alarm is triggered if both sensors are activated. The control
system controls an input valve and output valve on the liquid tank. If the upper limit
sensor is activated, the input valve is closed until liquid level is within limits. If the lower
limit is breached the output valve is closed until liquid level is within limits.

Build a decision table and propose a minimal collection of test cases for this control
problem [12 marks]

QUESTION 4
a) Explain the following as they apply to software quality assurance
i) Test plan
ii) Test design
iii) Test procedure
iv) Test execution
v) Test report
[10 marks]

b) Explain the following attributes as required of a requirements specification


i) Verifiable
ii) Unambiguous
iii) Consistent
iv) Complete
v) Modifiable
[10 marks]
3

QUESTION 5

(a) Use state diagrams to capture the following requirements for a traffic control system

1) A traffic light controller regulates the lights for a traffic intersection


2) The traffic light control system has the following super states:

b) NS (regulate north-south set of lights )


c) EW (regulate east-west set of lights)

3) The traffic light control system have the following methods :


clock(),lightsChange() ,for transitioning between the super states
4) Each set of lights changes every 25 seconds
5) In each super state, the selected lights go through the following states
RED
( after 25 seconds) GREEN
(after 20 seconds) YELLOW
( after 5 seconds) RED

6) Light changes occur at timed intervals


7) Time intervals can be changed
[12 marks]

b) Write a test plan for the software [8 marks]


4

QUESTION 6

Given the following java classes and interfaces, design the corresponding UML class
diagrams.

public class Aircraft {

private double airspeed;


private double height;
protected double winddirection;
public double direction;
public double getHeight( ){
return height; }

public double getSpeed( ){


return airspeed;
}
public int sensing( ){….
}
}

class Autopilot extends Aircraft{


…. }

class PlotPosition extends Autopilot implements CourseData{


….
}
class Path extends Autopilot implements CourseData , ProcessCommand{
……..
}

public interface CourseData{


public doubel airSpeed();
public double currentHeight();
public float windSpeed();
public String currentHeading();
public double outsideTemp();

public interface ProcessCommand{

public String actOnCommand(String command);


public boolean verifyCommand(String command);
public String adjustHeading();
}

[20 marks]
5

QUESTION 7

Present the following information on industrial robots as class diagrams [20 marks]

Basic characteristics and features of robots. These include: a load carrying capacity
(payload); degrees of freedom or axes of movement; number of arms and number of end
effectors (grippers); type fdrive system; type of control system; method of programming
memory capacity of the control system; positional accuracy (positional error) and
repeatability; position information; overall dimensions; speed of motion of robot links;
shape and size of the work envelope (work volume or work space); and the type of
coordinate system defining gross (basic) motions of the robot.
Basic concepts and definitions
The manipulator is a manually or automatically controlled unit with a working
mechanism designed to simulate the motions of a human arm and perform the specified
functions. There are three groups of manipulators differentiated by the method of
control: manual, automatic (program control), and the interactive manipulators which can
alternately operate as automatic and manual devices interacting with the operator.
The industrial robot is a reprogrammable automatic manipulator designed to perform
programmed motions in order to accomplish a variety of specified tasks in a seemingly
human way.
The basic structural elements of a robot are mechanical system, control system, and
information system
The mechanical system implements the motion functions of a robot and generally
consists of a manipulator and a carriage for a mobile manipulator.
The control system is an aggregate of interlinked and interacting control facilities
intended to program the robot, store the programs, and execute them, i.e. read out the
information and transfer control signals to actuators of the manipulator.
The information system is an aggregate of interlinked and interacting facilities which
gather, convert, process, and transmit information on the status of machinery and
environment to the control system.
Depending on the functions thy have to perform, robots fall into three groups: material-
handling (auxiliary or lifting-and conveying), material-processing (manufacturing), and
universal.
The material-handling robot is designed to service the manufacturing equipment,
namely, to carry out auxiliary operations: grasp, transport, place and remove workpieces
and tools, clean datum surfaces of workpieces and work areas of machines, and handle
the store materials in warehouses.
The material-processing robot is designed to perform the main manufacturing operations
such as bending, welding, painting, assembly, and other tasks involved in processing
materials.
The universal robot combines the features of the above two types of robot, so it can
perform both auxiliary and production operations.
Robots employ four types of control systems classified according to the character and
discreteness of movements: limited sequence (limited point-to point); point-to-point
(multipoint); continuous path (continuous trajectory); and composite (universal) control
systems which can drive the robot limbs along both point-to-point and continuous paths.

You might also like