Develop an understanding of data structures and programming techniques in context of a programming language.

Introduction to Programming

Assignment Brief
Description:

The assignment is given as three separate tasks. Each task is to be
answered individually. Task 1 has been written and designed to check your knowledge
and understand of data structures and programming techniques, including pseudocode.
Task 2 checks your knowledge and understanding of Algorithms and arrays, in order for
you to put given integers in the correctly stated order. Task 3 gives you the opportunity to
write an extended code, once the initial pseudocode has been written. This particular task
will check your knowledge and understanding of loops and IF statements.

Note:

The code that you write in order to complete all three tasks will be
documented in two ways. The first being screenshotted evidence within your
submitted word document, with detailed reasoning and justification for your
processes. Secondly, your written code for each task that you have screenshotted,
will be copy / pasted into the appendices at the end of your submission, so it can
be checked for validity within the software.

Learning outcomes:
After completing the modules you should be able to:

• LO1 Develop an understanding of data structures and programming techniques in context of a programming language.

• LO2 Demonstrate an understanding of how programs are developed i.e. from concept to development and testing.

• LO3 Demonstrate an ability to write programs using appropriate structure and language rules

Assignment Task
Task 1:
Building contractor

You are developer and you wish to build five new houses, all from wood and all uniform.
Each house has 3 rooms, all with exactly the same dimensions, i.e. 2m x 4m. Wood prices
have been set at £6.00 per meter.
You need to determine the total cost of the build of all five houses. Initially, you will need
to write the pseudocode to solve the following problem, define the variable name and data
types, plus write the code to solve the total build cost.
Hint: Determine the area of each room in each house and the total area of all rooms
combined. Thus, giving the total price of the construction.
(30 marks)
(LOs: 1, 2, 3)

Task 2:
Internet traffic

As a digital business analysist, you have been asked by your line manager to supply
the last seven months traffic figures to your company’s website. At the moment, the
traffic numbers are not in ascending order.
Write the pseudocode to solve the initial problem and then write a Java algorithmic
program to sort the array of given traffic figures. The traffic numbers to sort correctly
are:
2, -17, 8, 26, 1, 0, 84
Hint: Bubble sort
(30 marks)
(LOs: 1, 2, 3)

Task 3
Car repairs

An owner of an auto repair shop wishes to organise his team of mechanics at the
beginning of the day. To make the distribution of work equal, he organises cars with an
even amount of faults into bay 1 and cars with an odd amount of faults into bay 2. There
are nine cars in total

Write the pseudocode for the problem, then write a Java program to separate the even
and odd number of car faults. Have all even numbers displayed first, then odd numbers at
the end. The repairs required for each car are as follows.
18, 14, 12, 6, 4, 21, 19, 9, 3
Hint: WHILE LOOPS and IF
(40 marks)
(LOs: 1, 2, 3)
End of questions

Referencing Guidelines

You MUST underpin your analysis and evaluation of the key issues with appropriate
and wide ranging academic research, ensuring all cited literature is referenced using
the AU Harvard system(s).

Submission Guidance

Your assessment should be submitted as a single Word.
The submission for each task should be presented under relevant heading e.g.
Task 1 – as heading
Pseudocode for task 1– as heading
Content related to pseudocode under this heading
Code for task 1 – as heading
Content related to code for task here
The code clearly presented so that it can be copied and pasted into a suitable
coding platform to be executed and tested.