Docsity

Assigment 1 programming, Assignments of Programming Languages

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 1: Programming
Submission date
24/3/2020
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Nguyen Tan Anh
Student ID
BHAF190112
Class
BH-AF-1911-2.1
Assessor name
Bui Duy Linh
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
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Assigment 1 programming and more Assignments Programming Languages 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 24/3/2020 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Nguyen Tan Anh Student ID BHAF Class BH-AF- 1911 - 2.1 Assessor name Bui Duy Linh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I u making a false declaration is a form of malpractice. Student’s signature Grading grid P1 M1 D

TABLE OF CONTENTS

  • Introduction
  • Algorithm
      1. Definition, characteristics and example of algorithm
      1. Steps to build an application
    • 3 Slove program using algorithm
  • Conclusion
  • References

Below are steps make a custard cake at home: Step 1 : Separate the yolk and egg white to 2 different bowls. To separate the egg, lightly beat the egg in half, then pour back and forth between the two halves of the egg to separate the whites and yolks. Step 2 : Whip the egg white with a whisk or whisk until large air bubbles appear, add a pinch of salt and ¼ lemon squeeze the water and beat. When you see the air bubbles smaller, the sugar into the beat. Add sugar slowly and beat until you see the white fluffy layer, with a soft tip.

Step 3 : Put fresh milk, cooking oil and vanilla in a bowl containing egg yolks, beaten with a hand whisk. Step 4 : Soft corn flour and wheat flour evenly, slowly into the egg yolk mixture and mix well to make the mixture smooth.

Step 7 : When the cake is done, take the cake out, cool it, cut into small pieces and enjoy. Finished cakes must have a beautiful yellow color. The cake is fragrant, soft and when eaten, the cake is smooth and does not dry out. To make a delicious batch, you need to follow the correct ratio of flour and eggs.

  1. Steps in program development. When developing an application, programmers will always follow it step by step to make sure that the application will work best, but many programmers will miss some important steps in the process. The use of electronic computers to solve a problem is often conceived incorrectly, it is simply pure programming. In fact, it's a complex process that includes many stages of development where programming is just one of those stages (not necessarily even the most important part). Important steps of the entire process are listed below. The various 7 steps involved are:
  • Step 1: Defining or Analyzing the problem: The first step of the system analysis is to state the exact problem - the problem, clarify the requirements that the user requires. After studying the question, the analyst establishes a dependency between the facts and the results. Based on the problem model - the problem, the analyst will evaluate and determine the feasibility of the problem - is the problem worth solving?
  • Step 2: Design the Program : This is the step of building an algorithm based on program requirements. Execute the design and incorporate it into design documents to produce overall design documents, module design, database design.
  • Step 3: Coding: Programmers carry out programming based on the approved Design and Solution document. Based on the design (or algorithm) of the program, the programmer now translates everything into code using a suitable language (e.g. C, C++, Java, C#…).
  • Step 4: Documenting the program: It is part of good programming practice, as discussed in both the Java and C courses. It enables the markers and moderators of projects to distinguish your programs from those programs legitimately included in the project from other sources. Make algorithm easy to understand with programmer.
  • Step 5: Compiling and running the program : The program needs to be translated into machine language, which is the language that the computer's processor understands. Then, after compiling, an executable file will be created, which can be opened from the operating system and continues as a test run of the compiled program ready for the next step of testing and debugging.
  • Step 6: Testing and Debugging: Every program needs to check and correct programs. Testing is a process of finding bugs or errors in a software product that is done manually by a tester or can be automated. Debugging is a process of fixing the bugs found in a testing phase. The programmer or developer is responsible for debugging and it can't be automated. Every program needs to check and correct programs.
  • Step 7: Maintenance: Modifying a piece of software after handover to correct bugs, improve software performance or other properties, or adapt software in an altered environment and software maintenance means fixing errors that have not been discovered during the construction stage or the use of the software with many changes, upgrading the usability and safety of the software. Periodic software maintenance accounts for 65-75% of the software life cycle. The software development process consists of several stages: requirements acquisition, analysis, design, construction, testing, deployment and maintenance of software. The task of the software maintenance phase is to keep the software updated when the environment changes and requires the user to change.
  1. Solve program using algorithm. a. Problem. The management of student's score information is very important in the process of teaching and learning, effective management helps to track students' grades better. resolved through software, my program allows managing student information, managing information of each student's points, can add, delete, edit each information that needs management. b. Analysis. i. Divided into features such as: Student management, subject management, point management. ii. Student management: have features add new student, delete student, edit student, find student. iii. Subject management: have features add new subject, delete subject, edit subject, find subject. iv. Mark management: have features add new mark, delete mark, edit mark, find mark.

ii. Diagram of seach students. Pic 3: This is a flowchart of feature seach information of the student.

iii. Add student feature. Pic 4: This picture is flowchart of feature add new student. Conclusion In summary, this exercise also provides the definition of the algorithm, the characteristics that an algorithm has, and also provides examples of algorithms in everyday life. The report also shows the steps to build a program and explains each step clearly. The report also shows the steps to build a program and explains it step by step. I also used a programming tool to build and simulate the problem in a specific way. Provide diagrams describing basic functions such as main menu, searching for students, adding new students. References http://www.cs.ecu.edu/ https://www.edrawsoft.com/ https://en.wikipedia.org/ https://bubble.io/ https://learnappmaking.com/ https://www.khanacademy.org/