Docsity

BTEC HND Computing Assignment: Problem Solving and Programming, Assignments of C programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 1: Programming
Submission date
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Phạm Vĩnh Hưng
Student ID
GCH200724
Class
GCH1002
Assessor name
Đinh Đức Mạnh
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
Hung
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download BTEC HND Computing Assignment: Problem Solving and Programming and more Assignments C programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Phạm Vĩnh Hưng Student ID GCH Class GCH1002 Assessor name Đinh Đức Mạnh 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 Hung Grading grid P1 M1 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

Introduction

I was asked to demonstrate my problem solving and basic programming skills. I need to write a report about problem solving and basic programming skills. This report contains algorithms used to solve simple business problems, steps to be followed to create a working program solution and basic procedural programming instructions.

Task 1 - State your simple business

problems to be solved (P1)

1.1 Overview about Algorithm

The world of computing is full of buzzwords: AI, supercomputers, machine learning, the cloud, quantum computing and more. One word in particular is used throughout computing – algorithm. In the most general sense, an algorithm is a series of instructions telling a computer how to transform a set of facts about the world into useful information. The facts are data, and the useful information is knowledge for people, instructions for machines or input for yet another algorithm. There are many common examples of algorithms, from sorting sets of numbers to finding routes through maps to displaying information on a screen. To get a feel for the concept of algorithms, think about getting dressed in the morning. Few people give it a second thought. But how would you write down your process or tell a 5-year-old your approach? Answering these questions in a detailed way yields an algorithm. (Denny, 2020)

1.2 Represent a small and simple problem

Selection sort is a simple sorting algorithm. This sorting algorithm is an in-place comparison-based algorithm in which the list is divided into two parts, the sorted part at the left end and the unsorted part at the right end. Initially, the sorted part is empty, and the unsorted part is the entire list. The smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes a part of the sorted array. This process continues moving unsorted array boundary by one element to the right. (Anon., 2020) Consider the following depicted array as an example

Task 2 - Analyse the problem and design the

solutions by the use of suitable methods

(P1)

2.1 Analyse the problem

I created a student management program. It includes four functions: entering student data, printing student lists, looking for students, and sorting by average grade. Student information including ID, name, age, math score, literature score, english grade. Data types Variables int Age string Name, ID, Email double Math, Literature, English

  • Int data type for age because age is always integer
  • String data type for name, ID, email because they are a string of both numbers and letters
  • Data type double for math, text, english scores because they are decimals
  • Using switch case structure to design menu
  • Using list array to store student information
  • Using foreach loop to iterate the student array

2.2 Flowchart

Struct

Input function

Output function

Search by ID

Task 3 - Demonstrate the compilation and

running of a program (P1 – M1)

3.1 Introduce how the problem is solved

Problem solved with import and export students, search student by name, search student by ID

3.2 Source code and screen shots of the final result

3.3 Explain briefly what is Software Development Life Cycle

SDLC or the Software Development Life Cycle is a process that produces software with the highest quality and lowest cost in the shortest time possible. SDLC provides a well-structured flow of phases that help an organization to quickly produce high-quality software which is well-tested and ready for production use.

The SDLC involves six phases as explained in the introduction. Popular SDLC models include the waterfall model, spiral model, and Agile model. (ALTVATER, 2020)