Professional Documents
Culture Documents
Programming
ASSIGNMENT
No.1
Class: GCS0903
ID: GCS190749
Assignment due: 2 1 / 6 / 2 0 2 1
Assignment submitted:
Student declaration
I certify that the assignment submission is entirely my own work and I fully
understand the consequences of plagiarism. I understand that making a false
declaration is a form of malpractice.
Student’s signature
Grading grid
P1 M1 D1
ASSIGNMENT 1 BRIEF
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and
Unit 1: Programming
Title
Assignment title Problem solving with algorithms
Academic Year
Unit Tutor
Submission
Issue date
date
Submission Format:
Format: The submission is in the form of an individual written report and a
presentation. This should be written in a concise, formal business style using
single spacing and font size 12. You are required to make use of headings,
paragraphs and subsections as appropriate, and all work must be supported
with research and referenced using the Harvard referencing system. Please
also provide a bibliography using the Harvard referencing system.
Submission Students are compulsory to submit the assignment in due date and in a way
requested by the Tutors. The form of submission will be a soft copy in PDF
posted on corresponding course of http://cms.greenwich.edu.vn/
Note: The Assignment must be your own work, and not copied by or from another
student or from
books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or
other sources, you must reference your sources, using the Harvard style. Make sure that
you know how to reference properly, and that understand the guidelines on plagiarism. If
you do not, you definitely get fail
Assignment Brief and Guidance:
Scenario: You have applied for a post as a trainee with a software development
company and have been invited for an interview. You have been asked to demonstrate
your problem solving and basic programming skills. To do this you have to prepare a
report on using algorithms to solve problems.
You need to explain, using examples, how algorithms are used to solve simple
business problems and the steps needed to be followed to produce a working program
solution. You should make clear your assumption about your program. The problems
to be solved will involve basic procedural programming instructions - sequence
instructions (input, output and assignment statements), loops, conditional statements.
Problems should be analysed and designed by the use of flowchart and demonstrated
by the use of modules (procedures) using a menu based program.
Tasks:
• State your simple business problems to be solved.
• Analyse the problem and design the solutions by the use of suitable methods.
• Demonstrate the compilation and running of a menu-based program
• Evaluate how the problem is solved from the designed algorithm to the
execution program written by a specific programming language.
You also need to do a presentation of your work (it should be summary of your report).
LO1 Define basic algorithms to carry out an operation and outline the process of
programming an application
Stepwise refinement is a process for developing a detailed algorithm by gradually adding detail
to a high-level algorithm.
+ Step 5: Review the algorithm
• The final step is to review the algorithm. What are we looking for? First, we need to
work through the algorithm step by step to determine whether or not it will solve the
original problem. Once we are satisfied that the algorithm does provide a solution to the
problem, we start to look for other things. The following questions are typical of ones
that should be asked whenever we review an algorithm. Asking these questions and
seeking their answers is a good way to develop skills that can be applied to the next
problem.
• Does this algorithm solve a very specific problem or does it solve a more general
problem? If it solves a very specific problem, should it be generalized?
For example, an algorithm that computes the area of a circle having radius 5.2 meters (formula
π*5.22) solves a very specific problem, but an algorithm that computes the area of any circle
(formula π*R2) solves a more general problem.
Differences: Different measurements are used. The triangle formula contains 0.5.
• Write code: Computer code is essentially a list of instructions that can be run by a
certain program. Most code consists of plain-text documents so they can be used for
many different programs. A unique file extension is given to the document to indicate the
nature of the code. For example, a file created using Python is saved with a .py extension,
like 'myprogram.py.' However, the actual content of the file is still just plain text.
Because most code is in plain text, you can write code using
a basic word processor or text editor. However, it is much more effective
to use a software application that is specifically designed for coding in
a particular language. For example, when you write a document in
plain English, you would use word processor software, which can assist you
with things such as formatting, spelling, and grammar. Similarly,
a code editor provides tools such as syntax checking. Syntax is to code
what spelling and grammar are to writing English.
4. Evaluate the relationship between the written algorithm and the code variant.
4.1 the written algorithm :
• it uses the structural conventions of a normal programming language, but is
intended for human reading rather than machine reading. Pseudocode typically
omits details that are essential for machine understanding of the algorithm, such
as variable declarations, system-specific code and some subroutines. The
programming language is augmented with natural language description details,
where convenient, or with compact mathematical notation. The purpose of using
pseudocode is that it is easier for people to understand than conventional
programming language code, and that it is an efficient and environment-
independent description of the key principles of an algorithm.
5. Referrences:
http://sofia.cs.vt.edu/cs HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html"1114 HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html"-ebooklet/chapter HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html"4 HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html" HYPERLINK "http://sofia.cs.vt.edu/cs1114-
ebooklet/chapter4.html".html .
https://study.com/academy/lesson/how-to-write-a-program-coding-testing-
debugging.html.
https://www.datajob.com/en/definition-automotive/646/variant-
coding#:~:text=Variant%20coding%20is%20programming%20ECUs,disabling%20of%20so
ftware%2Ddriven%20functions.
https://www.quora.com/What-is-the-difference-between-the-written-algorithm-and-
the-code-variant