





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An algorithm is a set of well-defined, computer-implementable instructions that are used to solve a set of problems or conduct a computation. Algorithms are generally developed independently of the underlying programming languages; an algorithm can be implemented in more than one programming language. Form the data structure point of view, the following are some important categories of algorithms: search, sort, insert, update, delete.
Typology: Assignments
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















Programming 1618 ASSIGNMENT
Learner’s Name: NGUYEN XUAN TRUONG Assessor Name: NGUYEN VAN SON Class: GCS1005B ID: GCS Assignment due: Assignment submitted: 1
Contents Chapter 1- State your simple business problem to be solved...................................................................... 5 1 •Over about Algorithm:........................................................................................................................ 5 2 Represent a small and simple problem................................................................................................. 6 Chapter 2- Analyse the problem and design the solution by the use of suitable methods(P1):.................. 7 2.1 Problem:............................................................................................................................................ 7 2.2 Flowchart........................................................................................................................................... 7 Chapter 3- Demonstrate the compilation and running of a program........................................................ 12 3.1 Introduce how the problem is solved.............................................................................................. 12 3.2 Source code and screen shots of the final result............................................................................. 18 3.3 Explain briefly what is Software Development Life Cycle................................................................. 20 3.4 Explain how the source code is compiled........................................................................................ 22 Chapter 4 - Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language............................................................................................. 25 4.1 Include Test cases............................................................................................................................ 25 4.2 Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language......................................................................................... 28
5 Chapter 1- State your simple business problem to be solved
Definition:
- An algorithm is a finite set or set of rigorous instructions, procedures, or sets of actions for a certain item that are clearly defined and defined to complete a number. The fact that these instructions are appropriately applied from a specific starting state results in the intended end outcome. •Algorithms are a method of solving issues sequentially. Data is analyzed, computations are performed, and computer and math issues are solved using this strategy. •Algorithms are commonly used to alter data, create new data objects, locate items or data, sort items and data, and so on. Language Independent Effectiveness Unambiguity^ Finiteness In put Out put Characteristic of an algorithm
Chapter 2- Analyse the problem and design the solution by the use of suitable methods(P1):
There are many problems to solve in your business life, one of which is to calculate your revenue based on your annual goals. To solve this problem, I created a small program that facilitates the import and export of sales data. The following example calculates revenue after the import procedure to see is revenue has reached its target.
Main
start Print name and note Figure 2: Main flowchart (!) achieve^ end target! (!) don’t achieve target! Compare average revenue and revenue goal Print data of average revenue int data of revenue goal Find average of data ( Jun to Dec) int data(Jun to Dec)
Flowchart of compared: Figure 4: flowchart of compared (!) don’t achieve target! (!) achive target compare average revenue > revenue goal int data of revenue goal start end
Open Microsoft Visual Studio.