Assignment 1 : Higher Nationals in Computing, Assignments of Information Technology

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

2021/2022

Uploaded on 06/11/2022

Pinko88
Pinko88 🇻🇳

1 document

1 / 29

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download Assignment 1 : Higher Nationals in Computing and more Assignments Information Technology in PDF only on Docsity!

Higher Nationals in Computing

Programming 1618 ASSIGNMENT

No.

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

  1. REFERENCES:.......................................................................................................................................... 29 [1] Tutorialspoint.com. 2022. SDLC - Overview. [online] Available at: [Accessed 4 March 2022]. [2] Stackify. 2022. What Is SDLC? Understand the Software Development Life Cycle. [online] Available at: [Accessed 4 March 2022]. [3] Codesansar. 2022. Algorithms (Characteristics, Guidelines & Advantages). [online] Available at: [Accessed 4 March 2022]. [4] 2022. [online] Available at: [Accessed 4 March 2022]........................................................................................................ 29

5 Chapter 1- State your simple business problem to be solved

1 •Over about Algorithm:

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):

2.1 Problem:

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.

2.2 Flowchart

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

The program calculates monthly sales and

compares it to your goals.

  • This is a step of the program:

o Step 1: User must enter monthly revenue.

o Step 2: The program will calculate average

revenue and show it.

o Step 3: Enter the revenue goal.

o Step 4: The average revenue and the revenue

objective will be

compared by the program.

o Step 5: The program will print on the screen you

achieve target or

not.

Open Microsoft Visual Studio.

  • Select File -> New -> Project from the bar menu.
  • The Dashboard Program.
  • From the Template, choose Visual C#, and then Windows.
  • Code in Code Editor.
  • To run the project, use the F5 key or click the Run button. The text Hello World displays in a Command Prompt window.

3.3 Explain briefly what is Software

Development Life Cycle

  • The Software Development Life Cycle (SDLC) is the most efficient method for producing high-quality, low-cost software. The SDLC is a well-structured phase flow that allows businesses to comprehensively test and produce high-quality software for production environments quickly. •The graphic representation of the various steps of SDLC in genera is shown below. SDLC TeDE RequirementPlanningArchitecturalDesignSoftwareDevelopmentstingployment