You are on page 1of 11

Higher Nationals in Computing

Programming

ASSIGNMENT

No.2

Learner’s Name: Le Duc Anh

Assessor Name: NGUYEN VAN SON

Class: GCS0801B.1
ID: GCS18856
Assignment due:
Assignment submitted:
ASSIGNMENT 2 FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing

Unit number and


Unit 1: Programming
title

Submission date 18/11/2000 Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Le Duc Anh Student ID GCS18856

GCS0801B.
Class Assessor name
1

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
P2 P3 P4 P5 M2 M3 M4 D2 D3 D4

❒ Summative Feedback: ❒ Resubmission


Feedback:

Grade: Assessor Signature: Date:


Lecturer Signature:
ASSIGNMENT 2 BRIEF
Qualification BTEC Level 5 HND Diploma in Computing
Unit number
Unit 1: Programming
and title
Assignment
Application development with IDE
title
Academic Year

Unit Tutor
Submission
Issue date
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 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 passed the
presentation to demonstrate your problem solving and basic programming skills. Now
you are given a more challenge task to create a fully working, secure application that
has been developed using an IDE and adheres to coding standards for a detailed
business problem.
Tasks
You will discuss a suitable problem with your mentor and list the user requirements
before designing, implementing (coding) and testing a solution. You will create a
report that should include:
● Introduction to your program (list of requirements and screenshots of program)
● Explain some of programming paradigms. Evaluate why and how your program use
these (or some of) paradigms.
● Explain the common features of an IDE should have and evidence of how the IDE
was used to manage the development of your code.
● An evaluation of developing applications using an IDE versus developing an
application without using an IDE.
● An explanation and evaluation of the debugging process in the IDE used and how it
helped with development.
● An explanation and evaluation of coding standards used in your program and the
benefits to organisations of using them.

The working application produced must also be demonstrated together with the
presentation.

Learning Outcomes and Assessment Criteria

Pass Merit Distinction


LO2 Explain the characteristics of procedural, object-oriented and event-driven
programming, conduct an analysis of a suitable Integrated Development
Environment (IDE)
P2 Give explanations M2 Analyse the common D2 Critically evaluate the
of what procedural, features that a developer source code of an
object-oriented and has access to in an IDE. application which
event-driven implements the
paradigms are; their programming paradigms,
characteristics and the in terms of the code
relationship between structure and
them. characteristics.
LO3 Implement basic algorithms in code using an IDE
LO4 Determine the debugging process and explain the importance of a coding
standard
P3 Write a program M3 Use the IDE to D3 Evaluate the use of
that implements an manage the development an IDE for development
algorithm using an IDE. process of the program. of applications
contrasted with not using
an IDE.

P4 Explain the M4 Evaluate how the D4 Critically evaluate


debugging process and debugging process can be why a coding standard is
explain the debugging used to help develop more necessary in a team as
facilities available in secure, robust well as for the individual.
the IDE. applications.

P5 Outline the coding


standard you have
used in your code.

Table of Contents
Programming......................................................................................................... 1
ASSIGNMENT......................................................................................................... 1
1. Introduction to my program:........................................................................5
2. Some of programming paradigms:...............................................................6
3. The common features of an IDE should have:..............................................6
4. Review of using and not using the IDE:........................................................7
5. Explain and evaluate the debugging process in the IDE:.............................7
6. An explanation and evaluation of coding standards:....................................8

1. Introduction to my program:
Hotel Z needs to manage a number of guests coming in and out of
that hotel. The hotel proposed giving each person an ID card for
easy management. This program was created to do just that
Request:
 Enter the number of guests entering the hotel
 Enter name, age
 See the list of guests currently in the hotel
 Find guests by id

Some pictures of program:


2.Some of programming paradigms:
Some of programming:
Logical programming: Logic programming is declarative in nature
and depends on the common purpose to operate on those declarations.
Procedural programming: Procedural-oriented programming
disintegrates a program into procedures and emphasizes what the
program must do. Procedural-oriented programming consists of a set of
skills and procedures step by step.
Functional programming: Functional programming is a
programming model that takes into account the estimation of
mathematical functions and avoids the use of states and transformative
data. Functional programming emphasizes what the program does, and
applies the function.
Object-oriented programming: Object-oriented programming
decomposes a program into classes that include properties and functions
that operate on the objects of that class.
Why and how:
Programmers are required to use programming models because
programming models make their programming easier and more efficient,
and different programs also need different programming models.

3.The common features of an IDE should have:


The common features of an IDE should have:
 Compiler ( is a computer program that translates a series of
statements written in a programming language (called source or
source language) into an equivalent program but in the form of a
new computer language (called the target language) and usually
lower-level languages, like machine language. This newly translated
program calls object code.)
 Debugger :(is a computer program used to test and debug another
program.)
 Programming language support( IDEs are typically specific to a
single programming language, though several also offer multi-
language support. As such, the first step is to figure out which
languages you will be coding in and narrow your prospective IDE list
down accordingly. Examples include Ruby, Python, and Java IDE
tools.)

4.Review of using and not using the IDE:


In fact, the IDE is not completely a must in the process of developing
applications and software. IDE with its tools only makes programming
easier, easier and less error-prone.If you don't have an IDE, you can still
write code just by manipulating the corresponding compiler of the
programming language. However, this process will be time consuming,
more complex, and even inefficient, especially for large structured
programs.
5.Explain and evaluate the debugging process
in the IDE:
Visual Studio has a debugger that works both as a source-level debugger
and a machine-level debugger. It works with both management code as
well as machine language and can be used to debug applications written
in languages supported by Visual Studio. In addition, it can also attach
operating procedures and monitor and debug processes. If the source
code for the active process is available, it will display the code as it is
being run. If the source code is not available, it may show disassembly.
The Visual Studio debugger can also create memory dumps as well as
load them later for debugging. Advanced multi-threaded programs are
also supported. The configurable debugger will be launched when an
application running outside of Visual Studio crashes the environment.
Evaluation of the debugging process:
When the software was implemented, a lot of bugs (bugs) started to arise.
This bug may be from your own writing program or from programs you
inherit from others. When the program runs and the result is not what you
expected, it is an error. So your predictions have been wrong or something
has happened when the program was executed without your knowledge.
Sometimes just by looking at the source code you can find the right cause
but when that does not work, now you need to Debug.

6.An explanation and evaluation of coding


standards:
Code:
class Program
{
static void Main(string[] args)
{
Console.WriteLine("\n**********Welcome to Z Hotel**********\n");
People peo1 = new People();
peo1.PrintPeople();
Console.ReadKey();
}
}

class People
{
private string name;
private int id;
private DateTime BirthDay;
public void SetID(int id)
{
this.id = id;
}
public int GetID()
{
return this.id;
}
public void Setname(string name)
{
this.name = name;
}
public void SetBirthday(DateTime birthday)
{
this.BirthDay = birthday;
}
public People()
{
// TODO: Complete member initialization
}
public void Display()
{
Console.WriteLine("ID= {0}", id);
Console.WriteLine("People Name: {0}", name);
Console.WriteLine("Age: {0}", BirthDay);
Console.WriteLine("\n--------------------\n");
}
public void PrintPeople()
{
People[] peoplelist = new People[0];
int length = int.Parse(Console.ReadLine());
peoplelist = new People[length];
int index = 1;
Menu:
Console.Clear();
Console.WriteLine("1. Enter people to the hotel:");
Console.WriteLine("2. List of people entering the hotel:");
Console.WriteLine("3. Find people by ID");
Console.WriteLine("4. Exit");
Console.Write("Choose the one you want to do: ");
string ok = Console.ReadLine();
switch (ok)
{
case "1":
{
People Sn = new People();
Console.Write("Enter name:");
string name = Console.ReadLine();
Sn.Setname(name);
Console.Write("Enter Birthday:");
BirthDay = DateTime.Parse(Console.ReadLine());
Sn.SetBirthday(BirthDay);
Sn.SetID(index + 100);
peoplelist[index] = Sn;
index++;
goto Menu;
}
case "2":
Console.WriteLine("List of people staying at the hotel\n----------------\n");
foreach (People s1 in peoplelist)
{
if (s1!=null)
{
s1.Display();
}
}
Console.ReadLine();
goto Menu;
case "3":
Console.WriteLine("Enter the ID you want to find: ");
string tk = Console.ReadLine();
foreach (People s2 in peoplelist)
{
if (s2==null)
{
Console.WriteLine("No people in this ID");
}
else
{
s2.Display();
}
}
Console.ReadLine();
goto Menu;
case "4":
break;
default:
Console.WriteLine("Enter a mistake, only values from 1 to 4");
Console.ReadLine();
goto Menu;
}
}
}
}

Explanation:
_ Coding standard is a set of rules for writing code of a program that
programmers must follow when participating in developing that program.
• How you write statements in the language, organize them into
“modules,” format them in the source files.
• How you create names.
• How you write comments.
Evaluation:
• Easy to maintain, fix errors.
• Can help others people to understand your source code.
• It is possible to unify the code between team members.

References
1.http://kcntt.duytan.edu.vn/Home/ArticleDetail/vn/168/1648/mo-hinh-lap-
trinh-programming-paradigms [Accessed 25 Oct. 2019].
2. https://vi.wikipedia.org/wiki/Visual_Studio [Accessed 25 Oct. 2019].
3.https://voer.edu.vn/c/quan-ly-loi/9f00d32d/4e570d06 [Accessed 25 Oct.
2019].
4. https://cppdeveloper.com/c-nang-cao/ky-thuat-debug-tren-visual-studio/
[Accessed 26 Oct. 2019].
5. https://www.ohay.tv/view/debug-la-gi-va-vi-sao-lap-trinh-vien-can-phai-
biet-debug/5bbc0a402c [Accessed 26 Oct. 2019].
6. https://quantrimang.com/ly-do-lua-chon-lap-trinh-csharp-162288
[Accessed 26 Oct. 2019].
7.
http://www.thayphet.net/application/upload/products/Lab01.LapWebBanha
ngVoiWebStore.pdf [Accessed 26 Oct. 2019].
8. https://cppdeveloper.com/c-nang-cao/ky-thuat-debug-tren-visual-studio/
[Accessed 27 Oct. 2019].
9.From teacher Son
10.From book Lap Trinh voi C#

You might also like