Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
92 views

ASM1 Programing

The document provides guidance for an assignment on problem solving with algorithms. It outlines the tasks which include stating business problems, analyzing and designing solutions using flowcharts and a menu-based program, and evaluating how the problem is solved from algorithm to code. It also lists the learning outcomes of defining algorithms, outlining the programming process, and examining algorithm implementation in code. Finally, it provides a sample contents outline for the report, covering algorithm definition, the software development process, and solving a problem using an algorithm.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

ASM1 Programing

The document provides guidance for an assignment on problem solving with algorithms. It outlines the tasks which include stating business problems, analyzing and designing solutions using flowcharts and a menu-based program, and evaluating how the problem is solved from algorithm to code. It also lists the learning outcomes of defining algorithms, outlining the programming process, and examining algorithm implementation in code. Finally, it provides a sample contents outline for the report, covering algorithm definition, the software development process, and solving a problem using an algorithm.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

ASSIGNMENT 1 BRIEF

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and Title Unit 1: Programming

Assignment title Problem-solving with algorithms

Academic Year

Unit Tutor

Issue Date Submission 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 on the due date and in a way requested
by the Tutors. The form of submission will be a soft copy in PDF posted on the corresponding
course of http://cms.greenwich.edu.vn/
Note: The Assignment must be your work, and not copied by or from another student or
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 get to 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, and conditional
statements. Problems should be analyzed and designed by the use of flowcharts and demonstrated by
the use of modules (procedures) using a menu-based program.

Tasks:
1. State your simple business problems to be solved.
2. Analyse the problem and design the solutions by the use of suitable methods.
3. Demonstrate the compilation and running of a menu-based program
4. 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 a summary of your report).

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 Define what an algorithm M1 Determine the steps taken D1 Examine the implementation
is and outline the process of from writing code to execute. of an algorithm in a suitable
building an application. language. Evaluate the
relationship between the written
algorithm and the code variant.
Contents
I. Introduction ......................................................................................................................................................2
II. P1 Define what an algorithm is and outline the process of building an application........................................2
1. Algorithm ......................................................................................................................................................2
a. Definition ..................................................................................................................................................2
b. The characteristics of the algorithm.........................................................................................................3
c. Example ....................................................................................................................................................4
2. The software production process .................................................................................................................7
a. Definition or Analyzing the problem ........................................................................................................7
b. Design(Algorithm).....................................................................................................................................8
c. Coding .......................................................................................................................................................8
d. Documenting the program .......................................................................................................................8
e. Compiling and running the program ........................................................................................................8
f. Testing and Debugging .............................................................................................................................9
g. Maintenance.............................................................................................................................................9
3. Solving a problem using ng algorithm ..........................................................................................................9
a. Problem ....................................................................................................................................................9
b. Analysis of the program............................................................................................................................9
III. Conclusion ................................................................................................................................................. 11
IV. References ................................................................................................................................................. 11

Page 1
I. Introduction
In this report, I will explain the definition, use examples, how algorithms are used to solve
simple problems, and the steps to take to create a program that works. I have clarified my
program. Problems will be analyzed and designed by me using flowcharts and by using menu-
based programs.

II. P1 Define what an algorithm is and outline


the process of building an application.
1. Algorithm
a. Definition
The algorithm is a given set of step-by-step instructions to solve a problem or accomplish a

Page 2
task. Algorithms might be expressed in words, computer programs, or code, or even as recipes.
Some algorithms may be simple routines, directions, or processes you use in your daily life. In
computer science, algorithms are represented through a computer program ( or set of computer
programs ) designed to systematically solve certain types of problems.

b. The characteristics of the algorithm


➢ Determination

This means specifying a step-by-step sequence and order of steps to turn input
into output. Algorithms should be clear, unambiguous, and detailed step by
step. If you are ambiguous about something, You can't expect a computer to be
able to understand.

➢ Finiteness
The algorithm must stop. Meaning you will either get the expected output or
will get a response with no possible solution. The algorithm will terminate
after a finite number of steps or after a certain number of steps.
➢ Precise and effective
For an algorithm to be efficient, all the steps to achieve the output must be
feasible given the available resources. It must not contain any redundant or
inefficient steps that make the algorithm misleading. That is the accuracy of the
algorithm

➢ Umnambyguity
A perfect algorithm must be clear and easy to understand
➢ Independence
An algorithm should have step-by-step that are unrelated to any programming
code. It is designed to run with any programming language

Page 3
c. Example

1) Step 1: Heating the filter

2) Step 2: Put about 25g of coffee in the filter

Page 4
3) Step 3: Brew coffee with 30ml of boiling. water and wait 10 minutes

4) Step 4: Add 50ml of water and wait for. a 15 minutes

Page 5
5) Step 5: Obtained 40 - 45ml of coffee . . essence

6) Step 6: Add sugar, milk, or ice

Page 6
7) Step 7: Enjoy the resulting filter

2. The software production process


a. Definition or Analyzing the problem
To build software successfully, the first thing you need to do is understand and identify the
problem, and clarify the requirements and expectations of users. Requirements analysis also
helps identify the risks at the very start so that risk mitigation strategies can be worked out from
the very beginning.

-Some of the Methods to find out software requirements include :


+ Interview, work in groups and meet partners ...
+ Search for experts, and users who are knowledgeable about the system to build to
collect various opinions and contributions.
-Analysis of requirements and defining the problem is crucial for the successful next
step of the software development lifecycle.

Page 7
b. Design(Algorithm)
Software design is a process of transforming software requirements into a design
representation. The design is to create a representation model of an entity that will later be
built.

-The good design program is likely to be :


+ The first important step is to ensure software quality.
+ Easier to maintain the software
+ Easier to manage risks
+ Easier to add features, change algorithms, integrate new, and expand original
software.
- Some design methodologies can be applied.
- An important technique is a component-level design process that follows a step-
by-step screening process. it is a method of low-level design.

c. Coding
- Coding is the process of transforming the design of a system into a computer
language format (for example Java, C++, C#, Python…).
- Coding is done by the coder.

d. Documenting the program


Any written text, illustrations, or video that describes a software or program to its users is
called a program or software document.

- The Importance of Documentation in Software Development is :


+ Keeps track of all parts of a software or program.
+ Programmers other than the developer can understand all aspects of the software.
+ Improves overall quality of the software

e. Compiling and running the program


- Compiling a program means translating from the source language to the language
of the machine.
- - Compiling is in 2 steps :
+ Step 1: Checking the syntax is correct and all variables and names are defined.
+ Step 2: Checking if all of them match ( int is assigned to int and such ) and doing
the compilation itself.
b . Running the program

Page 8
- Running a program is the process of executing a program, that will execute the
compiled/built code on emulators, simulators, or devices.

f. Testing and Debugging


- Testing is the process to find bugs and errors.
-Software testing to avoid risks and errors throughout the product creation process. The
sooner the error is detected helps Avoid risks and costs.
b. Debugging
-Debugging is the process to correct the bugs found during testing.
-Debugging can help :
-+Developers minimize useless and distracting information
-+ Report fault status immediately

g. Maintenance
-During the use, if the software has any errors or features that customers want to fix.
A maintenance procedure will be created to make modifications.

3. Solving a problem using an algorithm


a. Problem
With the development of the automobile industry, especially luxury cars are imported. Having
a program to help manage vehicles in the market is a necessity. In this problem, I will be able
to manage taxes and tax invoices by software.

b. Analysis of the program


The software has features: Enter customer information, calculate car companies' taxes, calculate
totals, and finally issue invoices.
+ Enter customer information can allow users to add and edit customer information.
+ Tax calculation for car manufacturers replaces the user to calculate the total tax of car
companies with a small or large amount quickly.
+ Invoicing helps users to accurately calculate calculations to best serve customers, with tax
clarity.

Page 9
c. Demo

Page 10
III. Conclusion
At last, I conclude that all resources taken in the making of this report belong to their respective
owners. I believe I have explained easily to understand algorithms, definitions, examples, steps
to develop software, and the process by which I create a simple software

IV. References

• Definition algorithm
https://www.techopedia.com/definition/3739/algorithm

• The software production process


https://saigontechnology.com/blog/6-stages-for-software-development-procedure-you-need-to-know

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:

Page 11
Lecturer Signature:

Page 12

You might also like