Software
Development
Intermediate 2
Software Development Homework 1
Copy and complete the following questions1. Match up these descriptions of the stages of the software development process with the correct names (one has been done for you):
6
2. What three criteria will be used for evaluating software in this unit?
3 3. What is the relationship between pseudocode and a structure diagram?
2 4. Name two items of documentation usually provided with a software package, and describe what you would expect each one to contain.
4 5. What three types of testing should be applied to any software?
3 6. Describe two examples of maintenance that could be required on a game
program.
Software Development Design Homework 2
When designing a program it is useful to represent the main steps of a program in turn. This is usually done in one of two ways
PseudoCode
(Falsecode) or
Structure Diagrams
Below are the main steps of ‘making tea’ in both Pseudocode and
Structure Diagrams
Look at the steps the try the questions in your jotter
1. Get mug from
cupboard
2. Put tea bag in it
3. Boil Kettle
4. Pour water into
mug
5. Stir
Making Tea
Get mug
from
cupboard
Put tea
bag in
it
Boil
Kettle
Pour
water
into
mug
Stir
Structure Diagram
Pseudocode
1.
Write Pseudocode for the following tasks
a. Going to school
b. Phoning a friend
c. Working out how much it will cost to carpet a room
2.
Draw Structure Diagrams to show
a. Going to school
b. Washing your hair
c. Work out your wages for a week
Software Development Homework 3
Programming Task Homework – colour changer
In your jotters: Design, write and test a program which asks the user to enter a letter and sets the background colour to the input colour and displays a message. • red if R or D is entered
• green if G or N is entered • blue if B or E is entered • yellow if Y or W is entered • black if C, A or K is entered.
The program should respond to both upper case and lower case inputs.
Design 1
Complete the Data Flow diagram
2
Design 2
Show your input and output messages as you expect them to
appear on the screen
2
Design 3
Write the Pseudocode
Implementation
Write the program
6
Testing
Copy the table then complete the first 3 columns of the table with
values
Test case Condition Expected Actual Comment
r normal b normal B exceptional
6
Software Development Homework 4
Copy and complete the following questions
1.
List the seven stages of the software development cycle
in
order.
7
2.
Describe what a
structured listing
is.
1
3. Write the Pseudocode to listen to a song on a CD (use no
more than 6 steps)
3
4.
Describe how the
User
Interface
of a program is
evaluated
.
1
5.
What does the term
adaptive maintenance
mean?
1
6.
Describe the difference between
High
Level
Language
and a
Low
Level
Language
.
2
7.
Why must programs be
translated
to a low level language?
1
8.
Name the
2 types of Translator
program.
2
9.
Describe the different way in which the two types of
translator
program work.
2
10.
Name 1
High level
and 1
Low level
programming language.
Software Development Homework 5
Copy and complete the following questions
1. What are the following programming languages used for: FORTRAN, PROLOG
and COBOL
3 2. What is a macro?
1 3. What do the terms Source code and Object Code mean?
2 4. Give 3 problems with programming in machine code
3 5. List 2 advantages of High Level languages?
2 6. Describe the difference between a High level language and a low level
language.
1
7. A program has been written to record scores of a dice roll, make up 3 suitable sets of test data
3 8. At which stage of the software development cycle might a Text Editor be used?
1 9. Name 3 types of value that should be tested when developing a program.
3 10. What is Corrective maintenance?
Software Development Homework 6
Copy and complete the following questions
1.Name and describe in order the 7 stages of the software development cycle. 7
2. Is the statement:- ‘pre-defined functions such as ASC, CHR$, LEN, UCASE and LCASE are useful as they save programmers time ‘ TRUE or FALSE?
1
3.Describe one advantage of Structure Diagrams over Pseudocode as a method of representing program design
2
4. Is Source Code usually written on Low or High Level language?
1
5. Describe how using a macro can safe time.
2
6. Describe what you would expect to find in
a) The User Guide b) The Technical Guide
2
7. Write the standard input validation algorithm
4
8. When a program repeats an action a known number of times would you use a
Fixed loop or a Conditional loop?
Software Development Homework 7
Copy and complete the following questions
Q1: Look at these lists of data items:
List 1 List 2 List 3
1. 27.3 1. 999 1. 0.001 2. 15.6 2. 333 2. 0.002 3. 9.93 3. –500 3. 0.010 4. 15.6 4. 0 4. 0.100 5. 1.56 5. 299 5. 0.020 6. 28.3 6. 929 6. 0.111 7. 23.8 7. –922 7. 0.001 8. 2.38 8. 99 8. 0.002 9. 15.6 9. –99 9. 0.200 10. 99.3 10. 299 10. 0.120
What value would each of the following standard algorithms return: (a) find minimum
(b) find maximum
(c) count occurrence of: 15.6 in list 1 . 99 in list 2. 0.001 in list 3. (d) linear search for: 2.38 in list 1. 929 in list 2. 0.111 in list 3.
8
Q2: Which standard algorithm would be used by the national census organisation to:
(b) find out how many people called Mary live in the UK (c) find out the oldest person living in the UK
(d) discover whether or not there was an individual called ‘Stan D. Ardal-Gorithm’ in the UK?
3
Q3: Name the four standard algorithms
4
Q4: Write the Pseudocode for the Input Validation algorithm