NCV Level 3 Reviewed Principles of Computer Programming 10041023 STD 2019
NCV Level 3 Reviewed Principles of Computer Programming 10041023 STD 2019
NQF LEVEL 3
INSTRUCTIONS TO STUDENTS
This is a practical application task that tests your ability to apply the knowledge and skills acquired
in the vocational subject. The work required from you is an important and compulsory component
of your studies.
1. General information
1.1 Study the task carefully.
1.2 Note the mark and time allocations per sub-task and for the task as a whole.
1.3 Note the assessment date(s).
1.4 Study the resources required carefully.
1.5 Use the assessment tool as guidance on how your work will be marked.
1.6 You are required to provide proof that you submitted work done by yourself. This implies
that you will be guilty of a malpractice if there is any evidence to suggest that the work
submitted is not your own.
As the PAT is part of your final promotion mark, you may not:
• Get help from others without acknowledgement.
• Allow others to do programming code for you.
• Submit work which is not your own.
• Share your work with other students.
• Include work directly copied from books, the Internet or other sources without
acknowledging it.
The above actions constitute malpractice, for which a penalty will be applied, depending on
the seriousness of the offence.
Note that if you use work from other resources, it may not exceed 10% of the work that you
submit.
1.7 Save your work regularly. Keep a backup copy of this task. You may need to use this task
in practical assessment task 2 and the ISAT task.
Preamble
Before you start with this practical assessment task, ensure that you understand and have
sufficient practice in all the outcomes of Topic 2 of your curriculum, such as:
• Developing and constructing IPO charts and pseudocode as part of the planning
process.
• Creating and developing VB.NET GUI based applications that include:
o Common controls such as text boxes, labels, list boxes, combo boxes and radio
buttons, buttons and events;
o User defined functions and subroutines.
Remember that it is your responsibility to practice writing code and solving problems. In
doing so you will become a skilled developer.
3.1.2 Based on the promotion details, create a simple flowchart or table that will clearly present
the exact details of the promotional offer. Using this chart or table, a reader should be able
to deduce how the discounts would apply based on the combination of products from group
B and the product selected in group A.
Also include a detailed description of the promotional offer, i.e. business rules regarding
the promotion and the conditions that apply based on the product combinations. (3)
Customer Information
Output area
Exit
If your college’s version of PowerPoint is outdated, download a small free application such
as Draw.io from https://www.draw.io or use to online version of the tool.
Use the Mock-up stencils to design and draw your UI
As part of your GUI design, indicate the type of the component as well as the names for
each. Also write a small single sentence motivation on why you have selected the
applicable control.
Copy and paste your GUI designs to a document that includes your student details,
assignment details, subject details and college details.
Your lecturer will provide you with a template for this purpose. (5)
3.2.2 Logical planning is an integral part of any software developers’ tasks. Remember that a
program well planned is a program half done!
For the planning of your application, include the following for each of the subroutines your
application will utilise. (Refer to the task description.)
• An IPO chart.
• Definitions and descriptions of the variables and controls to be used. (Note: Not all
subroutines will use or reference controls.)
• The corresponding pseudocode.
In addition, write the pseudocode for the click event of the (Show Promotional Offer)
button.
Label each of your sets of pseudocode appropriately.
Your pseudocode and IPO charts should be presented in a professionally formatted Word
document, following your GUI design. (Your lecturer will provide you with a template for
this purpose.) (8)
Refer to Annexure 1 of this document for additional content and two examples on this
requirement.
Please note that although this part of the work do not count much, it is pivotal for the next
stage. Do your planning carefully. Write and complete all your IPOs and sets of
pseudocode yourself. The better and more detailed this work is, the easier the coding part
will be.
3.3 Sub-task 3: Coding, development and debugging (Total: 27 marks; 150 minutes)
This task must be done under supervision. All rules regarding examinations will be
applicable.
Use both the documents you have created for sub-tasks 1 and 2 and develop a
corresponding VB.NET application.
3.3.1 Create a VB.NET Forms Application and name and save the application appropriately. (1)
3.3.2 Create the GUI with the appropriate controls as you have selected as part of your design.
Provide applicable names for all the controls you utilise and ensure that your GUI are
neatly formatted and that your controls are aligned. (3)
3.3.3 Declare all the necessary form class variables. Ensure that you declare your variables
with the correct scope and type. Marks will be deducted for incorrect declarations. (3)
3.3.4 Write the code for the corresponding subroutines/functions as you have done in your
planning.
Ensure that each of your subroutines receive the correct parameters and return the values
where and as necessary. Where best suited, rather pass values as parameters rather than
implementing global variables that should be avoided.
• Subroutine used for the discount. (3)
• Subroutine used for VAT. (2)
• Subroutine used for the final amount. (3)
• Subroutine for showing the promotional details. (4)
3.3.5 Include a suitable mechanism and add code to your application to ensure that the user is
only allowed to select 1 item from group A. The user should not be allowed to make any
selection from the group B items unless one item is selected from the group A items. (2)
3.3.6 Write code that will assign the data entered by the user to the correct corresponding
variables. (1)
3.3.7 Write the corresponding code for the click event of the (Show Promotional Offer) button.
This button should generate an informative quote based on the items/products selected.
Call the applicable subroutines. (2)
3.3.8 Add the code for the (Clear All), and (Exit) application buttons. (1)
3.3.9 Add detailed comments to your code including your student details. (1)
3.3.10 Include any additional functionality to illustrate how the application could be enhanced. (1)
5. Assessment tool
Use the marking checklist on page 9 as guidance on how your work will be marked. The
mark allocation is a guide to assess each sub-task. Your response will be assessed in terms
of the quality, appropriateness, and level of effort/analysis you have put in.
Task description
SECTION MARK TICKLIST
Promotional quote software application.
Sub-task 1: Information gathering and program design [5]
3.1.1 Electronic document for information capturing – criteria:
• A formatted cover page including the student’s details.
• An applicable company image or logo included.
• Presentation contained detailed descriptions of at least 3 products listed as part of
group A. Each product was presented with a name and price and applicable
products were listed as part of group B. 2
• Presentation contained detailed descriptions of the applicable products and the
discount information for group B.
• Disclaimer document included and signed/stamped.
(2 = all the criteria are met; 1 = one or two criterions is not met; 0 = more than two
criterions are not met.)
3.1.2 Flowchart/table of promotional offer and accompanying description – criteria:
• A well-presented flowchart/table to represent information regarding the applicable
discount per product as part of group B, based on the selection of the group A
product. An applicable company image or logo included.
Flowchart/table contained detailed descriptions of at least 2 products for group B,
as well as the relationship and applicable products matching group A. Each of
these products was presented with a name, price and applicable promotional 3
information. The presentation contained detailed descriptions of the applicable
products and the discount information for group B.
• The promotional offer details were adequately described and was easily
interpretable.
(3 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is
not met.)
TOTAL MARKS 50
Campus
Student’s ID Number
ASSESSMENT GRID
Student’s Signature
Lecturer’s Signature
Date
Moderator’s Signature
Feedback to student
Annexure A
Problem statement
William bought a new house with a swimming pool for which the dimensions are 9 m × 7 m. He needs to
install paving as well as fencing around the pool. He would like to determine the cost. Provide the following
values:
• Width of paving around the pool.
• Cost of paving per square meter.
• Width of garden around the paving.
• Cost of fencing per meter.
Calculate and display the price he has to pay for the paving and for the fencing.
Display both answers in a user-friendly way. You may assume that all input will be valid.
IPO
I P O
widthPaving Prompt to read input values pricePaving
widthGarden Enter input values priceFencing
costPaving Calculate price that paving will cost
costFencing Calculate price that fencing will cost
Display answers
Pseudocode
CalculatePrice
~ Enter input values
Display “Enter width of paving around the pool in meters:”
Enter widthPaving
Display “Enter width of garden around paving in meters:”
Enter widthGarden
Display “Enter cost of paving per square meter:”
Enter costPaving
Display “Enter cost of fencing per meter:”
Enter costFencing
~ Display answers
display “Price for the paving = R”, pricePaving
display “Price for the fencing = R”, priceFencing
end
Example 2
Problem statement
Do the necessary planning and write an algorithm in pseudocode for the following:
Enter the following input fields:
• Student number.
• Student name. (E.g. initials and surname.)
• Marks obtained in a test for Principles of Computer Programming.
• The total for the test.
Convert this mark to a percentage and display the percentage on the screen in a meaningful format that will
include the student name and student number. It must also include the status i.e.:
• (Fail) if the percentage is less than 50%.
• (Pass) if the percentage is from 50% to 74.9%; and
• (Pass with Distinction) if the percentage is 75% or above.
Many students did not perform well in this test and therefore the department decided to increase all final
marks with 10%. Display the new percentage as well as the status of this new percentage. Display both
answers in a user-friendly way. You may assume that all input values will be valid.
IPO
I P O
stName Prompt to read input values percentage
stNumber Enter input values status1
testMark Calculate percentage and determine status1 newPercentage
totalTest Calculate new percentage and determine status2 status2
Display answers
Pseudocode
CalculatePercentages
~ Enter input values
Display “Enter student initials and surname:”
Enter stName
Display “Enter student number:”
Enter stNumber
Display “Enter mark that student obtained for the test:”
Enter testMark
Display “Enter the total mark for the test:”
Enter totalMark
~ Convert test mark to a percentage and add 10% to it, determine the status of each
percentage = testMark * 100 / totalMark
newPercentage = percentage * 1.1
if percentage < 50 then
status1 = “ (Fail)”
else
if percentage < 75 then
status1 = “ (Pass)”
else
status1 = “ (Pass with distinction)”
endif
endif
if newPercentage < 50 then
status2 = “ (Fail)”
else
if newPercentage < 75 then
status2 = “ (Pass)”
else
status2 = “ (Pass with distinction)”
endif
endif
~ Display answers Applicable labels to be used
display “Percentage for “, stName, “ (“, stNumber, “) = “, percentage, “%”, status1
display “After the additional 10% the mark is “, newPercentage, “%”, status2
end
Copyright reserved 16
NATIONAL CERTIFICATE (VOCATIONAL)
NQF LEVEL 3
INSTRUCTIONS TO STUDENTS
This is a practical application task that tests your ability to apply the knowledge and skills acquired
in the vocational subject. The work required from you is an important and compulsory component of
your studies.
1. General information
1.1 Study the task carefully.
1.2 Note the mark and time allocations per sub-task and for the task as a whole.
1.3 Note the submission date(s).
1.4 Study the resources required carefully.
1.5 Use the assessment tool as guidance on how your work will be marked.
1.6 You are required to provide proof that you submitted work done by yourself.
1.7 Save your work regularly. Keep a backup copy of this task. You may need to use this task for
the ISAT.
Preamble
Before you start with practical assessment task 2, ensure that you understand and have
sufficient practice in all the outcomes of Topics 2 and 3 of your curriculum, such as:
• Developing VB.NET applications that incorporate different types of arrays, including
working with parallel arrays.
• Defining and declaring structures.
• Using an array of structures as part of an application.
• Reading and writing to text files.
Remember that it is your responsibility to practice writing code and solving problems. In doing
so you will become a skilled developer.
For each of these you are required to store the data of at least 4 to a maximum of 6 different
fields. For example, if you decide your application is to store data on the customers, you need
to have fields such as customer number, customer details, address, email and phone number.
Your application will work and manage data stored in arrays. You must decide to use one of
the following approaches:
• Implement a set of parallel arrays, where each array is used for a field; or
• Implement an array with a structure, i.e. an array of structures.
Your application should read the data to populate your arrays from a text file. The text file
content could be presented in any format such as fixed field widths, delimited fields, comma
separated values, etc.
You must create a text file to use as the source of data for your array. There should be
sufficient data in the text file to represent at least 15 records, i.e. array elements.
Read the data from the text file into your applicable array/s. Use an appropriate event for this
purpose. The coding for this would require you to implement FileIO operations and various
string methods.
Data operations are crucial for any data-driven application. Your application should include
one the following functionalities:
• Must allow the user to browse or view the fields of each of the ‘records’;
• Change two of the fields in an appropriate process, e.g. increase a price or change the
stock quantity.
In addition, your application should include one of the following two functionalities:
• Sorting and displaying the records based on a certain criterion; or
• Searching for an applicable record and displaying the data.
You should illustrate your ability to include coding functionality that illustrates your own
creativity. This entails including at least 1 user-defined subroutine/function to facilitate some
or other functionality. Finally, your application should save the data in the arrays back to a
text file in an appropriate event.
The various task requirements are as follows:
• Design of the application UI.
• Definition of the applicable array/s.
• Definition and use of user defined function/subroutine.
• Populating the array with the data from the text file.
• One of the following two operations:
o Data operation 1 – browse the data in the array/s; or
o Data operation 2 – changing field values.
• One of the following two operations:
o Sorting the array/s based on a criterion; or
o Search functionality.
• Own creative code implementation.
• Writing the data back to the text file.
• Effective coding, proper comments and indentation applied.
3.1.2 Design a UI using an appropriate electronic tool. (See practical assessment task 1.) Name
and explain the purpose of each of the components that you will implement as part of your
application. Use the template supplied by your lecturer for practical assessment 1.
3.1.3 Develop applicable IPO charts and corresponding sets of pseudocode for any two of the
process operations of the application, e.g. sorting/searching or data operation 1, etc.) Refer
to the examples in Annexure A of practical assessment task 1 for this purpose.
3.1.4 Create the text file used to programmatically populate the array/s.
3.2. Sub-task 2: Coding and debugging the program (Total: 30 marks; 150 minutes)
This task must be done under supervision. Use the interfaces and the algorithms created
in sub-task 1 to code the program.
3.2.1 Create a corresponding VB.NET project and form based on your UI design. Ensure that all
components are properly named and that the solution is saved. (2)
3.2.2 Include the necessary declarations of the arrays (and structure) to be used. (2)
3.2.3 Code an applicable event to populate the array/s with the data of the text file. (5)
3.2.4 Write the code for a relevant user-defined subroutine/function. (3)
3.2.5 Write code to browse the data in the arrays, i.e. the user must be able to see the data as
records in components; or
Write code to perform changes to the values of the data in the arrays, e.g. updating prices
or removing stock, etc. (5)
3.2.6 Include the code for either the sort or search options. Ensure that you clearly comment the
code. (5)
3.2.7 Own creative code implementation. (2)
3.2.8 Writing the data back to the text file. (5)
3.2.9 Code presentation/indentation/comments. (1)
5. Assessment tool
Use the checklist below as guidance on how your work will be marked. The mark allocation
is a guide to assess each sub-task. Your response will be assessed in terms of the quality,
appropriateness and level of effort/analysis you have put in.
• IPO Operation 2 –
o The pseudocode was presented in a readable way with clear indications of the
logical flows and constructs required.
o The appropriate input, processing and output operations (or in the case of a
subroutine, the parameters being passed) were identified and used.
o The pseudocode related to the algorithm and was logically correct.
o The code was indented and presented neatly with comments where applicable. 8
• A well-formatted document including all the required details as stipulated was
presented.
• The content of the logical planning document was neatly presented and there was
evidence of pride and professionalism in the presentation thereof.
(8 = all the criteria are met; 5 = one criterion is not met; 3 = two criterions are not met; 1 =
three criterions are not met; 0 = more than three criterions are not met.)
3.1.4 Design and content of the text file to be used as a data source to populate the
array/s or array structures – criteria
• The textfile contains sufficient data for at least 15 records
• Each line of text presents a suitable record that has at least 4 fields
• An appropriate mechanism is implemented that will enable a programmer to extract
the fields 2
o Fixed field with approach used; or
o Appropriate delimiter used; or
o Combination of fixed field widths and delimiters
(2 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
Sub-task 2: Coding and debugging the program [30]
3.2.1 VB.NET project and UI design – criteria:
• A VB.NET forms-based application was created which was appropriately named and
saved.
• All files were named correctly, and the project had a relevant name.
• The GUI design corresponded with the wireframe design. 2
• All components implemented were appropriately named.
• All components implemented were suitable for their applicable tasks.
(2 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
3.2.2 Array and structure – criteria:
• At least 4 parallel arrays were declared.
• The arrays were appropriately named.
• The size of the arrays was all the same.
• The arrays related to the “fields” as presented in the text file.
• The arrays were appropriately initialised.
OR
The student implemented parallel arrays - criteria 2
• A structure was defined that included various fields related to the data of the text file
records.
• The fields were correctly named with suitable data types.
• The structure contained at least 4 fields.
(2 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
3.2.3 Code an applicable event to populate the array/s with the data of the text file –
criteria
• An applicable Streamreader or other reader object for file access was defined.
• The external file was opened and referenced appropriately.
• An applicable mechanism was built with code to manage whether the file could be
accessed or not and if not, appropriate action was to be taken.
• The text file reference object was used correctly within the code constructs used to
process the file.
• An applicable sentinel controlled looping structure was utilised to read through the text
file line by line.
• There was evidence that the student understood the concepts of string and index
manipulation in relation to the code construct developed. 5
• A line of text from the text file was assigned to an appropriate variable.
• Various string manipulation methods were applied to extract the various fields from the
line of text.
• An index for array referencing purposes was declared.
• The various fields were assigned to the applicable array (in the case of a structure the
array of structure fields) or elements.
• The index was appropriately managed and incremented.
• Any final operations regarding the processing were implemented.
(5 = all the criteria are met; 3 = one criterion is not met; 2 = two criterions are not met; 1 =
three criterions are not met; 0 = more than three criterions are not met.)
3.2.5 Browse data in the arrays OR perform changes in the data of the arrays – criteria
• The student code implemented worked perfectly and showed evidence that the student
fully understood the task, e.g. browsing or updating of data elements.
• The logic applied by the student achieved the required task.
• The changes to the elements of the array were applied correctly.
• The index was used and updated appropriately. 5
• The code included a mechanism to show the changes to the user.
• The code was neatly presented, indented and commented.
(5 = all the criteria are met; 3 = one criterion is not met; 1 = two criterions are not met; 0 =
more than two criterions are not met.)
(2 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
3.2.8 Writing the data back to a text file – criteria:
• An applicable StreamWriter or other reader object for file access was defined.
• The file external was created and referenced appropriately.
• An applicable sentinel controlled looping structure was utilised to read through the
array/s element by element.
• A line of text was created to be written to the file. 5
• The line of text was correctly written to the file.
• After the operation was completed, the text file was saved and when opened and
viewed, the data was updated as intended.
(5 = all the criteria are met; 3 = one criterion is not met; 1 = two criterions are not met; 0 =
more than two criterions are not met.)
3.2.9 Code presentation/indentation/comments – criteria:
• Local variables were properly defined and included.
• The code was indented appropriately.
• Sufficient comments were included. 1
• The presentation of the code was professionally done, e.g. naming of components.
• Use of appropriate constructs and methods are applied
(1 = all the criteria are met; 0 = one criterion is not met.)
Sub-task 4: Demonstration, presentation and documentation [5]
3.4.1 Application document – criteria
• The created document was based on a template and included all the various elements
of the previous sub-tasks.
• Uniform fonts were applied, and the document had a professional appeal.
• The document contained a cover page with the appropriate details.
• An index was included.
3
• Applicable running screenshots with descriptions were included as part of the user
documentation.
• There was evidence that the student took pride in his/her work and the document could
be used for reference purposes by future students.
(3 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
3.4.2 Demonstration – criteria
• The student comfortably demonstrated the application and was knowledgeable on all
the code constructs implemented by answering all questions correctly.
• The application worked perfectly as intended. 2
(2 = all the criteria are met; 1 = one criterion is not met; 0 = more than one criterion is not
met.)
TOTAL MARKS 50
Campus
Student’s ID Number
ASSESSMENT GRID
SUB-TASKS MARK ALLOCATION STUDENT’S MARK
Sub-task 1: Information gathering and program design 15
Sub-task 2: Coding and debugging the program 30
Sub-task 3: Demonstration, presentation and documentation 5
Total 50
Converted to % 100%
Highly
Outstanding Competent Not yet competent Not achieved
competent
80-100% 70-79% 50-69% 40-49% 0-39%
5 4 3 2 1
Student’s Competence Level
Student’s Signature
Lecturer’s Signature
Date
Moderator’s Signature
Feedback to student
Copyright reserved 10
NATIONAL CERTIFICATE (VOCATIONAL)
NQF LEVEL 3
REVIEWED INTEGRATED
SUMMATIVE ASSESSMENT TASK
INSTRUCTIONS TO STUDENTS
This is a practical application task that tests your ability to apply the knowledge and skills acquired
in the vocational subject. The work required from you is an important and compulsory component
of your studies.
1. General information
1.1 Study the task carefully.
1.2 Note the mark and time allocations per sub-task and for the task as a whole.
1.3 Note the submission date(s).
1.4 Study the resources required carefully.
1.5 Use the assessment tool as guidance on how your work will be marked.
1.6 You are required to provide proof that you submitted work done by yourself.
1.7 Save your work at regular intervals. Keep a backup copy of your work.
Preamble
Before you start with the ISAT, ensure that you understand and have sufficient practice in
all the outcomes of Topics 2, 3, 4 and 5 in your curriculum, such as:
• Developing VB.NET applications that incorporate different types of arrays (including
working with parallel arrays.)
• Defining and declaring structures.
• Using an array of structures as part of an application.
• Reading and writing to text files.
• Applying defensive programming techniques and methods.
• Applying user input validation.
In addition, you should thoroughly practice using MS Access by creating your own tables,
setting up and defining keys and relationships, developing and designing forms, queries
and reports.
Remember that it is your responsibility to practice writing code and solving problems. In
doing so you will become a skilled developer.
For the ISAT, you are required to develop two separate applications, namely:
• VB.NET application.
• Ms Access application.
The two applications are related. Remember how you were tasked to create an output text
file as part of your practical assessment task 2 application? Often text files become the
source of data to populate tables as part of a database-driven application.
Application 1: VB.NET
For this task, you are required to enhance and extend your practical assessment task 2
project. It is a perfect opportunity to learn more and become a better developer.
In practical assessment task 2, you were given the choice to select and include various
functionalities as part of your solution (refer to the task description). These were:
• One of the following two operations:
o Data operation 1 – browse the data in the array/s; or
o Data operation 2 – changing field values.
• One of the following two operations:
o Sorting the array/s based on a criterion; or
o Search functionality.
The first objective is to include the two functionalities that you did not originally select to do
as part of your application. Secondly you are required to include and apply two different
data validation techniques on two different elements of your application. Examples of
various validation techniques are:
• Range or constraint checks.
• Verifying masks and input fields.
• Applying checksums or related algorithms.
• Data type checks.
• Consistency checks.
• Etcetera.
One of the validation techniques should be done by implementing a user-defined function
that returns a Boolean value.
Thirdly, you are required to apply one defensive programming technique to an appropriate
event of your application. Examples of defensive programming techniques are:
• Catering for unexpected data or occurrences.
• Highlighting potential issues.
• Adding guards and exception handling.
Application 2: Ms Access
For this task, you must identify any two related entities using the data as part of the output
text file you have created for practical assessment task 2. Refer to Annexure B for an
example in which three entities are identified.
You must design a basic ERD with two entities that also include attributes (i.e. fields). You
may add applicable attributes/fields to the entities you design.
From the ERD and using Ms Access, you must create an appropriate project with two
related tables that will provide the user with the opportunity to browse and edit data, run
queries and reports. Your Ms Access application will be related to your VB.NET application
as it is based on the same data.
You are allowed to be creative in including any other functionality that adds value to the
program within the allocated timeframe.
3.2.3 Write the code that will incorporate a data validation technique on one of the data elements
of your application. Include the user-defined function you have designed in 3.1.4. (5)
3.2.4 Write applicable code for a second data validation operation on one of the other data
elements of your application. (5)
3.2.5 Include code in your application that illustrates that you understand the concept of
defensive programming. (5)
5. Assessment tool
Use the checklist on page 7 as guidance on how your work will be marked. The mark
allocation is a guide to assess each sub-task. Your response will be assessed in terms of
the quality, appropriateness and level of effort/analysis you have put in.
College
Campus
Student’s ID Number
ASSESSMENT GRID
SUB-TASKS MARK ALLOCATION STUDENT’S MARK
Sub-task 1: Information gathering, program and database 15
design.
Sub-task 2: Enhancement of functionality 35
Student’s Signature
Lecturer’s Signature
Date
Moderator’s Signature
Feedback to student
Annexure B - Example of identifying entities and attributes from a text file as a source of
analysis
The following tab-delimited text file contains data from different athletes:
If we analyse the data, we could identify three possible entities, such as the:
• Athlete.
• Country of the athlete.
• Sport (or event) that the athlete competes in.
It is then possible for us to create the following simple ERD indicating the relationships between the entities:
If we examine the ERD, we could deduce the following basic business rules:
• One country could have many athletes. Each athlete has a preferred event and each event has various
athletes that could compete.
• For the fields (attributes) in the country table (entity) and the event table the designer thereof included related
fields that are appropriate. The fields of the athlete table correspond to the fields as in the text file.
Copyright reserved 13