Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
17 views11 pages

Unit 1 - Assignment 1 Frontsheet

Uploaded by

iamdom482005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views11 pages

Unit 1 - Assignment 1 Frontsheet

Uploaded by

iamdom482005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Unit 1: Programming

Submission date 19/06/2024 Date Received 1st submission 19/06/2024

Re-submission Date Date Received 2nd submission

Student Name Nguyen Hoang Thu Thuy Student ID BS01056

Class SE07023 Assessor name Truong Quoc Khanh

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 Thuy

Grading grid

P1 P2 M1 D1
❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:


Lecturer Signature:
Table of Contents

I.Introduction
This programming topic summarizes how to code in C#, used in Visual Studio programs. Different ways
to represent algorithms are:
• Natural language
• Flowchart
• Pseudo code

II.Main Content
Provide a definition of what an algorithm is and outline the process in building an application.(P1)
Algorithm
An algorithm is a step-by-step procedure or set of rules for solving a specific problem or accomplishing a
particular task. In the context of application development, an algorithm can be seen as a plan or blueprint
that outlines the logical steps required to build an application.

1.Definition of algorithm

An algorithm is the step-by-step unambiguous instructions to solve a given problem.


In the traditional study of algorithms, there are two main criteria for judging the merits of
algorithms: correctness (does the algorithm give solution to the problem in a finite number of
steps?) and efficiency (how much resources (in terms of memory and time) does it take to
execute.

Figure
1. What is an Algorithm?

2. Characteristics of algorithm
There are some characteristics of the algorithm:
 Finiteness: An algorithm must always terminate after a finite number of steps.
 Definiteness: Each step of an algorithm must be precisely defined; the actions to be carried
out must be rigorously and unambiguously specified for each case.
 Input: An algorithm has zero or more inputs
 Output: An algorithm has one or more outputs
 Effectiveness: the algorithms is based on the available resources. It should be effective,
exact and suitable for programs.
 Language Independent: The Algorithm designed must be language-independent. It has to
be general resources. We can apply to all programming languages.

Figure 2. Characteristics

The process of building an application typically involves several stages, including planning, design,
development, testing, and deployment. Here is an outline of the general steps involved in building an
application:

 Identify the problem: Clearly define the problem or need that the application will address.
Understand the requirements and objectives of the application.
 Plan and gather requirements: Create a detailed plan for the application development process.
Gather requirements by consulting with stakeholders, users, and other relevant parties. Document
the functional and non-functional requirements.
 Design the application: Create a high-level design of the application, including the user interface,
data structures, and system architecture. Consider factors such as scalability, security, and
performance.
 Develop the application: Implement the design by writing code. Break down the development
process into smaller tasks and modules. Use appropriate programming languages, frameworks, and
tools. Follow coding best practices and coding standards.
 Test the application: Conduct various types of testing, including unit testing, integration testing,
and system testing. Identify and fix any bugs or issues. Validate that the application meets the
specified requirements.
 Refine and optimize: Continuously improve the application by refining the design, code, and
performance. Optimize the application for efficiency and usability.
 Deploy the application: Prepare the application for deployment to the target environment. Set up
the necessary infrastructure, servers, and databases. Ensure proper configuration and security
measures are in place.
 Monitor and maintain: Monitor the application in the production environment. Address any
issues or bugs that arise. Regularly update and maintain the application to ensure it remains secure
and up-to-date.
 Collect feedback and iterate: Gather feedback from users and stakeholders. Use this feedback to
make improvements and iterate on the application. Continuously enhance and add new features
based on user needs.

Determine the steps taken from writing code to execution (P2)

Topic Summary
You are a programmer, interning in an ABC software company. You are having a programming
practice exercise about a program to calculate water bills for households, companies, factories...
The requirements are that ABC wants a program that will allow a user to enter the following
information:

 Customer name
 Last month’s water meter readings
 This month’s water meter readings

The price of water is calculated according to the following table


Type of customer Price Enviroment protection
(VND/m3) fees (10%)

Household customer To 10 m3/people/month 5.973 597,30


VND/m3

From 10-20 7.052 705,20


m3/people/month VND/m3
From 20-30 8.699 866,90
m3/people/month VND/m3
Over 30 15.929 1.592,90
m3/people/month VND/m3
Administrative agency, 9.955 995,50
public services VND/m3
Production units 11.615 1.161,50
VND/m3.
Business services 22.068 2.206,80
VND/m3

and when exporting to a spreadsheet, there are the following requirements:

 Customer name
 Last month’s water meter readings
 This month’s water meter readings
 Amount of consumption (This month’s water meter readings - Last month’s water meter
readings)
 Total water bill
 Sort, search for customers, generate invoices notifying customers and payments dues is one of
the feature enhancement suggestions.
Code

Figure 3. Water bill calculator code


Figure 4. Result of code
Figure 5. customer, generate invoices notifying customer and payments dues is one of the feature
enhancement

You might also like