Test 2 Postmortem - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Test 2 Postmortem

Description:

Test 2 Postmortem. Dennis Burford. dburford_at_cs.uct.ac.za. Results. Average: 20/35. Best: 30 ... What are the three main criteria used to measure the success of ... – PowerPoint PPT presentation

Number of Views:67
Avg rating:3.0/5.0
Slides: 17
Provided by: dennisb79
Category:
Tags: postmortem | test

less

Transcript and Presenter's Notes

Title: Test 2 Postmortem


1
Test 2 Postmortem
  • Dennis Burford
  • dburford_at_cs.uct.ac.za

2
Results
  • Average 20/35
  • Best 30
  • Worst 8
  • (Test 1Average 28 Best 32 Worst19)

3
Question 1
  • What are the three main criteria used to measure
    the success of a software project. 3

4
Question 1
  • What are the three main criteria used to measure
    the success of a software project. 3
  • To specification (on brief)
  • On budget
  • On time

5
Question 2a
  • Give the four steps in Booch's software
    development approach for Object Oriented Systems.
    4

6
Question 2a
  • Give the four steps in Booch's software
    development approach for Object Oriented Systems.
    4
  • Find Classes
  • Find Behaviours for each class
  • Establish interclass relationships
  • Implement classes and methods

7
Question 2b
  • Each entry in the scheduler is either an
    appointment, a to-do item, or amemo. Each entry
    has the date and the time it is entered. An
    entry can be locked, and if locked, the user
    cannot modify it. For an appointment entry,
    include the person and the place of meeting. For
    a to-do entry, include a short description of a
    task and the due date. For a memo, include a
    text. Use the Java ''Date" class to record the
    date and time of an entry. The scheduler is a
    list of entries. There should be functionality
    for displaying all entries and adding, deleting
    or editing an entry. 7

8
Scheduler
display()
addEntry()
deleteEntry()
editEntry()
N
Date
Entry
-date
-date Date
or...
-time
modify()
lock()
or...
Appointment
To-Do
Memo
-person String
-Text String
-dueDate Date -description String
-place String
9
Question 3a
  • Discuss some of the interface design principles
    that result from a consideration of human
    capabilities. 5

10
  • Memory (7 2 things)
  • Avoid clutter (Economy)
  • Avoid Cognitive Overload
  • Consistency

Perception and Visual Recognition
  • Affordances
  • User familiarity
  • Past Experience
  • Match interface to
  • user group
  • Intuitive display of
  • status, info and
  • controls

No Surprises
Human Capabilities
  • Mistakes
  • Confirmation
  • Recoverability

Direct Manipulation
11
Question 3b
  • Name two possible uses for color in a user
    interface. 2

12
Question 3b
  • Name two possible uses for color in a user
    interface. 2
  • Drawing attention (eg. a warning )
  • Indicating status
  • Conveying complex information
  • Others..?

13
Question 4 6
  • public class Numbers
  • static int nums new int4
  • public static void main( String args )
  • throws NumberFormatException
  • for (int i0 iltargs.length i )
  • numsi Integer.parseInt( argsi
    )
  • System.out.println( numsi )

14
Question 4 6
  • public static void main( String args )
  • for (int i0 iltargs.length i )
  • try
  • numsi Integer.parseInt( argsi )
  • catch (NumberFormatException nfe)
  • numsi -1
  • System.out.println( numsi )

15
Question 5
  • public class University
  • // private data storing all student data
  • ....
  • public String makeStudNum(String surname,
    String firstName)
  • // generates and returns a new student number
    based on the
  • // student's surname and first name

The makeStudNum method creates student numbers in
the same way as student numbers are created at
UCT. Write a main method which will thoroughly
test the makeStudNum method. The driver method
should use normal, extreme and erroneous test
cases. Indicate with comments the type of each
test case. 8
16
Question 5
  • public static void main (String args)
  • University uct new University()
  • String result
  • // Normal
  • result uct.makeStudNum( Burford, Dennis )
  • // Extreme
  • result uct.makeStudNum( S, F )
  • result uct.makeStudNum( XXXXXXXXXXX,
    YYYYYYYYYY )
  • // Erroneous
  • result uct.makeStudNum( S, )
  • result uct.makeStudNum( , )
  • result uct.makeStudNum( 312, 765 )
  • result uct.makeStudNum( !, )
Write a Comment
User Comments (0)
About PowerShow.com