Docsity

1618_Assignment 1 GREENWICH, Thesis of Computer Science

Toggle sidebar
bg1
Higher Nationals in Computing
Unit 1: Programming
ASSIGNMENT 1
Learner’s name: ĐÀO VĨNH KHANG
ID: GCS200222
Class: GCS0905B
Subject code: 1618
Assessor name: PHAN MINH TAM
Assignment due: Assignment submitted:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download 1618_Assignment 1 GREENWICH and more Thesis Computer Science in PDF only on Docsity!

Higher Nationals in Computing

Unit 1: Programming

ASSIGNMENT 1

Learner’s name: ĐÀO VĨNH KHANG

ID: GCS

Class: GCS0905B

Subject code: 1618

Assessor name: PHAN MINH TAM

Assignment due: Assignment submitted:

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 1:^ Programming
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name ĐÀO VĨNH KHANG Student ID GCS
Class GCS0905B Assessor name Phan Minh Tam
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 D

Assignment Brief 1 (RQF)

Higher National Certificate/Diploma in Computing

Student Name/ID Number:
Unit Number and Title: Unit 1: Programming
Academic Year: 2021 – 2022
Unit Assessor: Phan Minh Tam
Assignment Title: Problem solving with algorithms
Issue Date: 27 September 2021
Submission Date:
Internal Verifier Name:
Date:
Submission Format:
Format:
● The submission is in the form of an individual written report. 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
Tutor.
● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/.
● Remember to convert the word file into PDF file before the submission on CMS.
Note:
● The individual Assignment must be your own work, and not copied by or from another student.
● 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 understand and follow the guidelines to avoid plagiarism. Failure to comply
this requirement will result in a failed assignment.
Unit Learning Outcomes:
LO1 Define basic algorithms to carry out an operation and outline the process of programming an
application
Assignment Brief and Guidance:
Assignment 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).
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 program
  • Evaluate how the problem is solved from the designed algorithm to the execution program
written by a specific programming language.

Learning Outcomes and Assessment Criteria Pass Merit Distinction LO1 Define basic algorithms to carry out an operation and outline the process of programming an application P1 Provide a definition of what an algorithm is and outline the process in building an application. M1 Determine the steps taken from writing code to execution. D1 Examine the implementation of an algorithm in a suitable language. Evaluate the relationship between the written algorithm and the code variant.

P a g e | 1

ASSIGNMENT 1 ANSWERS

P1 Provide a definition of what an algorithm is and outline the process in building an application.
A.Introduction to the algorithm and give examples.

In essence, algorithms are simply a series of instructions that are followed, step by step, to do something useful or solve a problem. You could consider a cake recipe an algorithm for making a cake, for example. An algorithm must be :

  • Definite
  • Finite
  • Precise and Effective
  • Implementation independent

P a g e | 2

EXAMPLE: Factorial
ĐÚNG SAI
START
N
I=
T= 1
S=0 M=

i <=n S=S+t/m t=t+ m=m+ I = I +

S
END

P a g e | 4

F. Documenting the program
  • Documentation should be from the point of view of the reader
  • Document should be unambiguous
  • There should be no repetition
  • Industry standards should be used
  • Documents should always be updated
  • Any outdated document should be phased out after due recording of the phase out
G. Compiling and running the Program
  • Memory algorithm is a translation engine by storing past translations in a database, the memory algorithm takes this data to reuse words, phrases and sentences for translations in the future. future.This segment can vary in length and our software selection is based on our contextual relevance for the project. Too the set up and doing clean the memory services can may in the time long. This art but have the following effect with a some text type. If you are a translator, you may never have to translate the same sentence twice.
F. Testing and debugging

Test criteria

  • Test whether each and every statement in the program is executed at least one (Basic path testing)
  • Test whether every branch in the program is traversed at least once (control flow)
  • Test whether the input data flows through the program and is converted to an output (data flow) Debugging is a process of correcting the errors
  • Programs may have logical errors which cannot be caught during compilation
  • Debugging is the process of identifying their root causes
  • One of the ways is to print out the intermediate results at strategic points of computation
    • Another way is to use support from the IDE Testing vs Debugging

P a g e | 5

  • Testing means detecting errors
  • Debugging means diagnosing and correcting the root causes
I. Maintenance
  • Program maintenance
  • Continuing process of maintenance and modification
  • To keep pace with changing requirements and technologies
  • Maintainability of the program is achieved by
    • Modularizing it
  • Providing proper documentation for it
  • Following standards and conventions (naming conventions, using symbolic constants, etc.)
  • Unit 1: Programming ASSIGNMENT Contents
  • Assignment Brief 1 (RQF)
    • Higher National Certificate/Diploma in Computing
  • P1 Provide a definition of what an algorithm is and outline the process in building an application.
    • A.Introduction to the algorithm and give examples.
    • B. Process in building an application
    • C. Defining or Analyzing the problem
    • D. Design (Algorithm)
    • E. Coding
    • F. Documenting the program
    • G. Compiling and running the Program
    • F. Testing and debugging
    • I. Maintenance
  • P a g e |
  • P a g e |