Professional Documents
Culture Documents
System Development Assignment JAN - JUNE 2019
System Development Assignment JAN - JUNE 2019
System Development Assignment JAN - JUNE 2019
MEMORANDUM
Academic Year 2019: January – June
Weighting: 40%
Educator: I. Musakwa
Examiner: I. Musakwa
Instructions:
Page 1 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
Question 1 (8 marks)
Understanding the environment and the features available on a platform you are using
for programming is important. Knowledge of the different controls in the Integrated
Development Environment (IDE), affords a programmer the ability to choose the
correct controls for each project. Answer the following questions.
Page 2 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
Variables can be stored in a class. (√) Classes can only be used and stored
inside a name space. (√)
Learning Outcome:
Examine the different types of controls.
The development of a system is done in a series of steps to ensure the final product
that is developed is in line with the expectation of the user. Answer the following
questions.
2.1 Briefly describe the circular model of the systems development life cycle
(SDLC). (12 marks)
Answer:
Software Requirerments: (√) Detailed description of the system and what the
stystem must do. (√) Non-functional requirements and documented into
functional requirements. This document is used for communication purposes
between the customer and the development team. (√)
Product Design: (√)Software requirements are turned into a full product design
by laying out how the software system and components will be joined. Ideas
of end users and development team are put together to come up with a working
software system product model. (√)
Detailed Design: (√)The software requirements and the product design stages
are evaluated in a top-down approach(√) Analysis is made on how the system
will function in different scenarios. (√)
Page 3 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
Code and Unit Test: (√) The programming team is ready to start programming
the design of the software system using IDE. When coding is finished, it is
tested to assure its quality and that the code works properly and does what
it is expected to do. (√)
Systems Integration: (√) All the unit tests (subsystems) are put together like a
puzzle. (√) (Unit 2: page 37-38)
Learning Outcomes:
Determine the nature of Development Life Cycles
Collected from the user (give their view of the system) (√)
Basis for drawing the functional specification on which the system shall be
designed (√)
Learning Outcomes:
Answer:
It Is a “sample” that is created by the programmer when the user of the system
has no idea of what the system must do. (√) The user does not know need to
know how the programme would be designed, work and perform in the working
environment. (√) It is used on the assumption that knowledge of the full
Page 4 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
requirements of the system are not known. (√)A shell of the programme, of what
it would look like is built(√)
3.1 The three (3) main types of programming errors with examples ( 14 marks)
Syntax errors: (√)A syntax error is a violation (√) of the language syntax (syntax
is another word for code), such as when statements are missing information,
when statements have extra information, when names are misspelled,etc. (√)
Using a keyword as a variable name is a syntax error. (√)
Runtime errors: (√)A runtime error occurs when a compiled program tries to
execute an illegal statement, (√) such as assigning a real number to an integer
variable, (√) assigning a character (such as a letter) to a variable that has been
declared as an integer or real number, (√) dividing by zero, (√) and finding the
square root of a negative number. (√)
Logical errors: (√) Logical errors are the most difficult type of errors to fix, as
the computer gives no error message. (√) The programmer’s program will
compile and run, but it won’t do what it’s expected to do. (√)For instance
swapping numerator and denominator in division, or using wrong data in a
calculation. (√)
Page 5 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
3.2 Reserved words in programming languages (4 marks)
In programming languages reserved words are also known as key words. (√) It have
specific functions and rules that applies to how they are used. (√) It provide an English-
like description of what the word will actually do and behave like. (√) Examples are
Private, Swing, Else and null. (√)
Create an application that can be used by the leaners to create four-letter words by
concatenating letters. Show the word that is created in a message box. Include a Clear
button in your application.
(NB: submit only the application source code for this question)
Page 6 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
private void btnConcatenateActionPerformed(java.awt.event.ActionEvent evt) {
strValue1= txtValue1.getText();(√)
strValue2= txtValue2.getText();(√)
strValue3= txtValue3.getText();(√)
strValue4= txtValue4.getText();(√)
JOptionPane.showMessageDialog(null,strOutput); (√)
Page 7 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
private void bntClearActionPerformed(java.awt.event.ActionEvent evt) {
txtValue1.setText("");(√)
txtValue2.setText(""); (√)
txtValue3.setText(""); (√)
txtValue4.setText("");(√)
A grade two teacher is teaching her learners to construct sentences. She had
asked you to create an application that will help her learners to construct
sentences by putting different words together. The learners must construct the
following sentence: “I Am Learning Sentence Construction.” The sentence
must be shown in a message box.
Page 8 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
private void btnConcatenationActionPerformed(java.awt.event.ActionEvent
evt) {
strInput1 =cboInput1.getSelectedItem().toString();(√)
strInput2 =cboInput2.getSelectedItem().toString();(√)
strInput3 =cboInput3.getSelectedItem().toString();(√)
strInput4 =cboInput4.getSelectedItem().toString();(√)
strInput5 =cboInput5.getSelectedItem().toString();(√)
strOutput = strInput1 + " " + strInput2+ " " + strInput3+ " " + strInput4 + " "
+strInput5; (√)(√)
JOptionPane.showMessageDialog(null,strOutput); (√)(√)
Page 9 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
Question 6 (23 marks)
Your friend has opened a coffee shop. She asked you to create an application that she
can use to check the totals of items that a person might bought. The application should
do the following:
6.1 Some customers would like to know what the cost of their items are before
they decide to buy. Do the calculations for a customer if one item cost
R300 and the customer want to purchase twelve (12) of it. The result must
be shown in a label. (9 marks)
(NB: submit only the application source code for this question)
Note to grader: Do not penalize students for failure to include the currency
6.2 Two (2) items should be added and the result must be shown in a label.
Include a button to clear all inputs and a button to exit the application.
(14 marks)
(NB: submit only the application source code for this question)
Total cost answer
Page 10 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
intInput2= Integer.parseInt(txtInput2.getText()); (√)
intOutput = intInput1 + intInput2; (√) (√)
lblOutput.setText(“R” + String.valueOf(intOutput)); (√) (√)
}
private void btnClearActionPerformed(java.awt.event.ActionEvent evt) {
txtInput1.setText (""); (√)
txtInput2.setText (""); (√)
txtInput3.setText (""); (√)
txtInput4.setText (""); (√)
}
private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0); (√)
}
Use the following controls and graphic user interface (GUI);
Page 11 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018
Learning Outcomes: (Unit 8 page 703-755, 810-833)
Become familiar with passing values of different data types.
Examine what the symbols are for doing calculations.
Page 12 of 12 HSYD100-1-Jan-Jun2019-FA1-Memo-IM-V.4-06112018