Society and Engineer, Tutorial
4 pages
English

Society and Engineer, Tutorial

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
4 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Department of Electronic & Information Engineering Page 1The Hong Kong Polytechnic University DL/GUI/Animal/Mar00The Hong Kong Polytechnic UniversityDepartment of Electronic and Information EngineeringGUI Design and Programming Mini-projectSoftware Learning Kit for Mentally Retarded Children Using JavaWorkshop 2.0Software Project 1: Learn to Identify Animals and their SoundWorking platform: Windows 95/98Objectives: To identify the shape of different animals and their sound.Optional Features: If possible, all instructions in the kit should be in Chinese orCantonese.Part I – Program DesignBy using Java Workshop 2.0, design a standalone Java program that performs the tasks as specifiedbelow:Screen Display Action ResultStartup1. Show the startup screen which Press Start button Start the next screencontains the PolyU logo and twoPress Quit button Quit the applicationbuttons to start or to quit2. TextArea to allow student to Type student’s name and press Start the next screentype his name for login and a enter (Each student should“Enter” button. have a file to record down theirprevious results)3. Three buttons: (i) Introduction Press Introduction button Start Introduction Phase(ii) Exercise (iii) Previous Press Exercise button Start Exercise PhaseResultPress Previous Result button Show previous resultsIntroduction Phase1. Show the picture of a cat. Press return or press the mouse The sound of ...

Informations

Publié par
Nombre de lectures 17
Langue English

Extrait

Department of Electronic & Information Engineering Page 1
The Hong Kong Polytechnic University DL/GUI/Animal/Mar00
The Hong Kong Polytechnic University
Department of Electronic and Information Engineering
GUI Design and Programming Mini-project
Software Learning Kit for Mentally Retarded Children Using Java
Workshop 2.0
Software Project 1: Learn to Identify Animals and their Sound
Working platform: Windows 95/98
Objectives: To identify the shape of different animals and their sound.
Optional Features: If possible, all instructions in the kit should be in Chinese or
Cantonese.
Part I – Program Design
By using Java Workshop 2.0, design a standalone Java program that performs the tasks as specified
below:
Screen Display Action Result
Startup
1. Show the startup screen which Press Start button Start the next screen
contains the PolyU logo and two
Press Quit button Quit the application
buttons to start or to quit
2. TextArea to allow student to Type student’s name and press Start the next screen
type his name for login and a enter (Each student should
“Enter” button. have a file to record down their
previous results)
3. Three buttons: (i) Introduction Press Introduction button Start Introduction Phase
(ii) Exercise (iii) Previous Press Exercise button Start Exercise Phase
Result
Press Previous Result button Show previous results
Introduction Phase
1. Show the picture of a cat. Press return or press the mouse The sound of cat is generated.
left button when pointing to aDepartment of Electronic & Information Engineering Page 2
The Hong Kong Polytechnic University DL/GUI/Animal/Mar00
picture
2. Show the picture of a dog. As above The sound of dog is generated.
3. Show the picture of a sheep. A The sound of sheep is ge
4. Show the picture of a horse. As above The sound of horse is generated.
5. Show the picture of a hen. As above The sound of hen is ge
6. Show the picture of a duck. The sound of duck is generated.
7. Show the picture of a bird. As above The sound of bird is ge
8. Show the picture of a cow. As above The sound of cow is generated.
Exercise Phase
1. For every exercise below, the performance of student should be logged in a file and shown when user
presses the Result button on the Startup screen.
2. For each screen, there should be buttons that allow user to go from one exercise to another or back to
the startup page.
1. Four buttons are shown Press button 1 Go to exercise 1
corresponding to four different Press button 2 Gercise 2
exercises Press button 3 Go to exercise 3
Press button 4 Gercise 4
Exercise I
1. Show the picture of any four Press the mouse left button For correct answer, sound is
animals. Generate the sound of when pointing to the picture of generated to congratulate the
a particular animal. Ask the an animal. student.
student to identify which animal For wrong answer, another sound
it is. is generated. Voice is then
generated to ask the student try
again.
2. Repeat 1 with another 4
animals.
Exercise II
1. Generate 16 labels and arrange Press the mouse left button The labels will flip open. If the a
them in a rectangle as in fig.1 when pointing to the labels. pair of animal pictures are found,
below. sound is generated to
Each label in fact covers up the congratulate the student. The
picture of a particular animal. pictures continue to display.
Since we have totally 8 animals, If not, another sound is
there will be eight pairs of generated. Voice is then
animal pictures. generated to ask the student try
When a student clicks on a again. The pictures are then
label. The label will flip open covered up by the labels again.
and show the covered animal
picture.
Ask the student to open two
labels each time to see if he can
find out a pair of animal
pictures.
Background music requiredDepartment of Electronic & Information Engineering Page 3
The Hong Kong Polytechnic University DL/GUI/Animal/Mar00
Exercise III
1. Generate 16 labels and arrange Press the mouse left button The label will flip open. If the
them in a rectangle as in fig.1 when pointing to a label. picture shown matches with the
below. sound, another sound is
Each label in fact covers up the generated to congratulate the
picture of a particular animal. student. The picture continues to
When a student clicks on a display.
label. The label will flip open If not, another sound is generated
and show the covered animal and voice is then generated to ask
picture. the student to try again. The
Randomly generate the sound of picture corresponds to that label
an animal. Ask the student to will be covered up again.
open a label to see if he can find
out the picture of the animal that
matches the sound.
Exercise IV
1. Repeat Exercise III, however, Same as Exercise III In addition to those in Exercise
the picture covered by the label III, once the student successfully
itself also covers a part of a guesses the Chinese word, sound
Chinese word as shown in fig.2. is generated to congratulate the
When the student successfully student.
opens a picture, the picture will If not, another sound is generated
be removed to show the part of and voice is then generated to ask
the Chinese word. Student is the student to try again next time.
asked to guess the Chinese word
every time he opens a part of it.
1 2 3 4 1 2 3 4
5 6 7 8 5 8
4
9 10 11 12 9 11 12
13 14 15 16 13 14 16
Fig.1 The Label Array Fig.2 Label covers picture and
picture covers Chinese wordDepartment of Electronic & Information Engineering Page 4
The Hong Kong Polytechnic University DL/GUI/Animal/Mar00
Part II – Report
Write a report of not less than 5 pages (excluding program codes) to describe how you write this program.
Detail describe all techniques you use, any technical problems you encounter and any solutions you use to
solve these problems. Describe your program using flow charts with verbal explanations. Attach your
program as an appendix at the end of your report.
General Description
a. Each group should normally comprise 3 students. Each group should hand in
i) both soft and hard copies of the report
ii) a soft copy of the program
on or before 12 May 2000. A demonstration of the program to your classmate should be made on
either one of the following dates: 16 May or 19 May.
b. It is very much preferred to use a word processing package to type your report. The contents of the
report are most important. However, you should try your best to write clear, correct and good
sentences.
c. Distribution of marks: Program design 65%
Report writing 35%
d. The specification above only defines the fundamental requirements. You may add your own ideas to
the program. But remember, your target is a group of mentally retarded children. Most of the
programs require a certain amount of multimedia materials, such as, graphics, sound, animation, etc.
You need to find your own way to get these materials (Try to search on the Internet before you give
up).
e. There should be a clear and even allocation of tasks among group members. Each member will be
individually assessed. Group member with larger contribution to the project will acquire higher
marks. The task allocation strategy among group members should be clearly described in the report.
f. A prize will be given to the best project. Upon evaluation or modification, the program will be
donated to a school for mentally retarded children.

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents