Unit 16 Assignment
Unit 16 Assignment
ICT Department
Students Name
Unit Name and
No:
Assignment
Title:
Class
Unit 16: Procedural
Programming
Assignment 1 : Designing,
building, testing a procedural
program
Issue Date:
IV Reference
Assessors
Name:
Assignment No
Nic Noble
1 of 1
Due date:
First Date
Received
P1
P2
P3
Pass
P4 P5
P6
M1
Merit
M2 M3
M4
Distinction
D1
D2
FOR THIS ASSIGNMENT YOU SHOULD BE HANDING IN:Task 1 - What is Procedural Programming?
Task 2 - Design your program
Task 3 - Developing Procedural Programs
Task 4 - Creating technical documentation
Task 5 - Testing
Task 6 On Screen Help / menu
Task 7 Evaluating Procedural Programs
Bibliography
Scenario
After successful completion of a Computer Programming course at your local college,
you are about to start work as an apprentice at Programmed Solutions an IT
company creating bespoke programs for small companies using C/C++ programming
language. As C/C++ is one of the hardest languages to learn, they would like you to
gain experience of programming before you start work. They have suggested you
explore this language using an Arduino and a variety of components. They have
provided you with an Arduino kit consisting of an Arduino Uno, various electrical
components and a breadboard used to assemble the components and build the circuit.
Before you start to build your program you will have to familiarize yourself with basic
electronics theory / building circuits.
You aim to spend at least 4 weeks familiarizing yourself with the language and
how it is used to control input and output devices connected to the Arduino Uno
board. During this time you will demonstrate an understanding of the Key feature
of Procedural languages such as:
procedures; functions; pre-defined functions; local variables; global variables;
parameter passing; modularity; programming libraries
Control structures: e.g. fixed loop, pre-check loop, post-check loop, break-points;
conditional commands
e.g. if, case, conditional statements, use of Boolean operators, Control
structures: e.g. fixed loop, pre-check loop, post-check loop
When you return to work you will be given help to choose an appropriate
project . This project you will allow you to demonstrate your understanding
of C/C++ and procedural languages. This will be used to assess whether you
have the necessary skills to make a successful career as a programmer
Enter First
Name
Enter Surname
Deduct national
insurance 0.07
Enter Hours
Worked
If
hours
worke
d
<=36
Yes
Hours worked x
7.45
Basic Pay
No
If
hours
worke
d
<=44
No
Yes
Higher
Pay
If
hours
worke
d
<=68
Yes
Highest
Pay
Description of System :
You will need to describe what is happening in your program by referring to what
is going on the circuit inputs and outputs and processing that is being carried
out e.g. The system uses 6 LED connecting to a resistor so that the LED does
not burn out. A potentiometer controls the amount of current flowing in the circuit.
It is connected to the input A0 pin which reads the analogue value between 0 and
255. The code controls the LED flashes the number stored in a variable. E.g. if
the number is 5 it will flash 5 times on for a second then off for a second ..
Part 2
Circuit Diagram :
You will be creating a diagram of your circuit using Abode Fireworks. You will be
provided with all the images of all the components see m4 Create Technical
documentation section of Moodle creating circuit diagram
Part 3
You will provide screen shots of your code and your annotation
as above
M4 create technical documentation for the support and maintenance of a
computer program
Create a test table to show you have tested your code and
components
Part 2
Object /Event to be
Tested
Expected
Actual
Success
?
Changes made
Potentiometer turned to
O
No LEDs to
light up
No LEDs to
light up
Yes
None Required
None Required
Each LED
that lights is
fully bright
Each LED
that lights is
fully bright
Yes
Potentiometer turned to
maximum
Potentiometer turned
half way
Each LED is
moderate
brightness
LED looks
like it is off
No
Distance Sensor
reads 8
No, one of
the led
connected to
pin 2 is off
No
LEDs do not
respond to
changes in current
like a light bulb.
Could have
replaced with a
more sensitive
light
Reconnect led
connected the
wrong way round
Distance Sensor
Distance
Sensor reads
distances
No values
on screen
No
Distance
connected not
connected up
properly red
write move to 5 v
instead of ground
(GND)
Screen shots to show errors when you compiled your code and proof
you have corrected the errors e.g.
You will need to analyse your test results and identify problems and find solutions
to these (m3). Without this analysis you will just achieve P6
tools and techniques you used and the general tools and techniques
available in the application
ease of use
Grading Criteria
Criteria
P1
P2
P3
P4
P5
P6
M1
M2
M3
M4
D1
D2
Assign
1
(Ti
ck
if
m
et)
Presentation of Work
Your work will be the Prezi presentation which is stored in your own Prezi web area.
Learning Outcomes
Be able to learn how to build a Prezi Presentation by following the many
tutorials on the internet
Use multimedia within your presentation to demonstrate how
multimedia can be used in businesses
Handout date:
Hand in date:
Textbooks