Beruflich Dokumente
Kultur Dokumente
NCC Education
Candidate No:
Marker’s comments:
Moderator’s comments:
Mark:
Moderated Final
Mark: Mark:
All NCC Education assessed assignments submitted by students must have this statement
as the cover page or it will not be accepted for marking. Please ensure that this statement is
either firmly attached to the cover of the assignment or electronically inserted into the front
of the assignment.
Student Declaration
I have read and understood NCC Education’s Policy on Academic Dishonesty and
Plagiarism. I can confirm the following details:
Number of words:
I confirm that this is my own work and that I have not plagiarized any part of it. I have also
noted the assessment criteria and pass mark for assignments.
Student Signature:
TASK 1
The club secretary would like the following report on a regular basic;
Report 1 A list of all the paid-up member names and contact number by
membership level, with totals for each level
Report 2 A list of players a of each of the four teams for the current season
with details of number of matches played for each teams (a player
may play for more than one team), tries scored, penalties scored
and conversions scored, with the players listed in alphabetical
order.
Using JSP techniques and methodology, analyse the requirements for both reports.
Produce diagrams for each report showing the step-wise progression. Diagrams should
include logical data structure diagrams (DSD) and preliminary program structures (PSDs) as
will as detailed program specification for each report.
Report 1
Stepwise refinement 1
Line of report *
Paid up Members
report
Line of report *
Adult record o o
Junior record Non-players record
Line of report *
Name Contact
Stepwise refinement 1
Open files Print file heading Close all files Print file heading
by level by level
Read a record *
Termination
Initialisation Processing
Read a record *
Process record
Process record Process record
Print accumulate
Print accumulate Print accumulate
report total level
report total level report total level
details
details details
Name Contact
Name Contact Name Contact
Add 1 to Add 1 to
Add 1 to
level total level total
level total
PURPOSE OF PROGRAM:
The program is expected to Initialize, Process and Close. This would be based on the
processing. The program will be carried out in three phases. These are INITIALISING,
PROCESSING and CLOSING.
INITIALISATION: Here, files (input and output) are opened, read from and written to at this
stage.
PROCESSING: The detailed step in running the program shown at this stage. The program
reads the first record which is the record of member. Until End- of-File condition is reached
If member is an Adult, Junior or Non-playing level. Paid–up members Names and contact
numbers by membership level are printed with totals for each level.
TERMINATION: All files that were opened and printed are closed
Report 2
A list of players for each of the three teams for the current season with details of number of
matches played for each team (a player may play for more than one team), tries scored,
penalties scored, and conversions scored with the players listed in alphabetical order.
Stepwise refinement 1
Current season
Line of report
Current season
Line of report
Player
Match details *
Current season
Line of report
Player
Match details *
Conversions
scored
Current season
Line of report
Player
Match details *
Conversions
scored
Stepwise refinement 1
Current season
Current season
Current season
Current season
Print report
Player details Match details *
[Alphabetical order]
Current season
Until EOF
Close file
Open file
Read and process Player *
record
Conversion
scored
Current season
Until EOF
Open file Close file
Conversion
1ST Team 2ND Team Junior 1ST Junior 2nd scored
Team Team
PURPOSE OF PROGRAM:
The program is expected to Initialize, Process and Close. This would be based on the
processing. The program will be carried out in three phases. These are INITIALISING,
PROCESSING and CLOSING.
INITIALISATION: Here, files (input and output) are opened, read from and written to at this
stage.
PROCESSING: The detailed step in running the program shown at this stage. The program
reads and process player current season record until end of file. Player name is processed,
matche details is processed, teams player played[1ST team, 2ND team, Junior 1ST team , Junior
2ND team ], matches played, tries scored, penalties scored, conversions scored and printer in
alphabetical order.
TERMINATION: All files that were opened and printed are close
Reference
Flowchart Report 1
Start
Total Adult = 0
Total junior = 0
Total Non-memders = 0
True
Close
Arrange records in
alphabetical order
Matches played: =0
Tries scored: =0
Total penalties_scored: =0
No Match[y].member_no
Yes
No Match[y].team_played=first
Yes
Yes
End of member No
records?
Matches played: =0
Total tries_scored: =0
Total penalties_scored: =0
Read member[n].
team_played Read next
member records
Yes
No
Match[y].team _played=second
Matches played: =0
Tries_scored: =0
Total penalties_scored: =0
Read member[n].
team_played Read next
member records
Yes
No Match[y].team_played=junior
Yes
Total match: =total_match+1
Yes
Print total matches_played
End of member
records? No
Yes
End
Reference
a) Write a procedure that will check for paid-up member. This procedure will be
included in the program that the club secretary will use when checking if people are
allowed into meetings.
b) Write pseudocode for the two report in Task 1. Include in your code the procedure
written in 3a).
c) Write pseudocode for a reports main menu. Note you are not expected to write
pseudocode for the options, only the codes to navigate the menu is required.
Report 1
Procedure for paid_up_member( )
Use variable counter OF TPYE Integer
RECORD : member
HAS FIELDS name : string
contact : string
level : string
status : string
MEMBERS (100) : Array OF TPYE members
Comment : The membership file was assume to contain a member record of 100 of type
integer. Reading one record at a time and decide in the status
Task 3b
MAIN PROCEDURE
Use variables Adult total, Junior total and Non-playing total OF TYPE integer
Print heading name, contact, level, status in output file
Paid_up_member.
Print ‘’total paid_up_member. Adult members are’’
Adult total
Print ‘’total paid_up_member. Junior members are’’
Junior total
Print ‘’total paid_up_member. Non-playing members are’’
Non-playing total
End procedure
Procedure for paid_up_member( )
Use variable counter OF TPYE Integer
RECORD : member
HAS FIELDS name : string
contact : string
level : string
status : string
MEMBERS (100) : Array OF TPYE members
REPORT TWO
PROGRAM season_details
RECORD club_members
HAS FIELDS member_name: String
contact_number: String
_ _ _ Trailer record linking club_members
RECORD team_matches
HAS FIELDS member_list: String
match_no: Integer
tries_scored: Integer
penalties_scored: Integer
conversions_scored: Integer
team_played: String
match_list[50]: ARRAY OF TYPE club_matches
member_list[100]:ARRAY OF TYPE club_members
total_match, total_tries, total_penalties_scored, total_conversions_scored OF TYPE Integer
Task 3c
REPORT MAIN MENU
Use variables select OF TYPE integer
Display ‘’type 1 to print paid_up_member total report’’
Display ‘’type 2 to print playing by team for current season’’
Display ‘’type 3 to quit
Accept select
IF select = 1
paid_up_member
ELSE IF select = 2
Team played
ELSE IF select = 3
Quit
END IF
Reference
This test is to check if the pseudo code written in Task 3b) report 1, a list of paid_up_member
Test Purpose level, name, contact and status.
The data needed to do this test is the members subscription file with contain field name,
Test Data contact, level and status.
The Database is read for each membership level to check whether is paid. The status is also
checked whether the member has paid which is done by the paid procedure. The total record of
Test Condition each level is also to be tested, accumulated and displayed.
On running the codes in a dynamic test, the actual output of the program was found to be the
same as that which was expected.
Actual
outcome
Dry checking
1.Variables
Procedure member record was pass to the procedure in the correct order.
The name of the call procedure and the calling procedure are he same.
3. Constants
The membership file was assume to contain a member record of 100 of type integer.
4. Equation
Each record read was pass on successfully to the print record because the data type are the
same.
PASS
1 2 3
Name Chris Filexpina Mama
Contact 0262526458 0246526458 0244630033
Level Adult level Junior level Non-player
Status Paid Paid Paid
Total 1 1 1
Variables
All checking made to the procedure were correct and its parameters existed in the right order, of the
right number and data type.
Constants
Variable equation
Dry running will be performed to test the pseudocode by examining each line and simulating a
computers action without making any assumptions at all. It is advisable that this is done by
somebody other than the programmer as it has been shown that programmers are most likely not to
notice bugs in their own code.
Reference
TASK 5 (a)
High-level
Generalization
Official document
Association
Secretary
1 record * Match
Coach
1 access * Player
Membership
1 paid 1
Membership Subscription
Treasure
1 monitors
* Membership
Clubs
1 organize
* Meeting
Club secretary
Clubs Treasure * 1 Team
Coach
runs
Name Name Name
Address
Address Team
Employee
Check membership
PROGRAMMING METHODS Monitor membership
Page 41 Head team
Record matches
Monitor subscription Access membership
Print report
Membership Club Match
Name Team
Name
Address player
Address Date
Member ID
Tries scored
Member level Contact
Conversions scored
Contact
Run team
Penalties scored
Paid subscription
Organize meeting Match played
Matches player
Subscription
Name
Member level
Subscription year
Payment date
Amount
Check membership list
Record member
matche(s)
TASK 5b
Secretary
Print player record Check member level
log on <<include>>
PROGRAMMING METHODS Page 42
Check member
<<include>> subscription
<<include>>
Treasurer <<include>>
Secretary
<<include>> Record player match
details
log on
TASK 5c
User
SCENARIO
User
SCENARIO
Deleting a member
User
SCENARIO
Printing a report
User
SCENARIO
TASK 5d
check
[name & password]
OK/NOT OK
Open
check name
Return
result
[Record found]Display member detail
Log off
Feedback
check
[name & password]
OK/NOT OK
Open
search record
Return
result
[Record found]Display Found
Deleting a member
check
[name & password]
OK/NOT OK
Open
search record
Return
result
[Record found]Display Found
Printing report.
check
[name & password]
OK/NOT OK
Display report
Feedback
Log off
Feedback
Collaboration diagram
1.Log on(name & password)
Check member records
2.Name & password OK
8.Display member record
9.Log off 3.Select option(check member record)
System Windows
7.Return result
4. Open application
5.Enter member name
PROGRAMMING METHODS Page 49
Search Screen
Search Screen
6.Check member record. 4. Open application
1.Log on(name & password)
5.Enter member name
2.Name & password OK
8.Display member record
9. Delete member
Deleting a member
12. Update successful
13.Log off
System Windows
3. Select option [delete]
10.Select option [delete member ]
System Database
System Menu
Printing report.
1.Log on(name & password)
2.Name & password OK
7. Print report
8.Log off 3. Select option [Print report]
System Windows 5. Select report option
System Menu
Print screen
4.Display report
TASK 6
TASK TWO is composed of the flowchart for the two reports specified in Task 1.
TASK THREE, a procedure for checking for paid-up members to allow members to
into meetings which is done by the club secretary. Pseudocode for both reports was
also produced for Task 1. Ignoring the options of the reports, pseudocode for the
reports main menu were produced and a code written to navigate the menu.
TASK FOUR has the test plans, test checks and dry runs for the pseudocode in Task
3b.
In TASK FIVE, using the UML modeling technique, a high-level class diagram
(Domain analysis) for the system was produced. A set of USE CASE diagrams that
showed actors and stereotyped dependencies were produced. All the given
BIBLIOGRAPHY