















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 1: Programming Submission date 21 st^ of December 2021 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Tran Anh Tuan Student ID GCD Class GED1001 Assessor name Do Duy Thao 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 Tuan Grading grid P1 M1 D
Summative Feedback: Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:
Algorithms give us the most ideal option of accomplishing a task to improve the efficiency of a computer program, proper utilization of resources. What algorithm mean?
Firstly, I will introduce the C# language, it used in algorithm to solved problem Figure 2. C# language
There is a basic example of a problem that can solve by an algorithm.
Flowchart 1. Main of application
Flowchart 2. Menu list of application Explain (pseudo code): Step 1: START Step 2: PRINT (“Input total student (3-30)”) Step 3: PRINT (“1. Input information”) Step 4: PRINT (“2. Show information”) Step 5: PRINT (“3. Exit”) Step 6: PRINT (“Input your choice”)
Option 1. Input information of students Explain (pseudo code): Step 1: START Step 2: DECLARE the variable i Step 3: Input n Step 4: WHILE n < 3 | n > 30 is true, return step 3 Step 5: SET i = 0 Step 6: WHILE I < n is true, repeat 8 through step 11
Explain (pseudo code) Step 1: START Step 2: DECLARE the variable i Step 3: SET i = 0 Step 4: WHILE i < n is true, repeat step 5 through step 6 Step 5: PRINT ID[i], grade[i], name[i] Step 6: MOVE UP i by 1 Step 7: STOP
The solution here is I use functions called “switch-case”, each of which has an algorithm to process the program. And the program use “do-while” function to check the condition. Firstly, I create variables that using strings to store information into arrays, using integer “I” for “for-loop” functions, using integer “n” to get total of students, using Boolean to check and “k” for “switch-case”. Figure 3. Variable
Void 1. Input information Figure 4. Input information I used the “for-loop” function and I used the while-loop structure here, if the grade is less than 0 and more than 10, it will force the user to reenter, because the point ladder always starts from 0→10. So, if the user enters the right grade, it will move to enter IDs.
Void 3. Main Figure 6. Main
I start with “Input total students(3-30)” and SET the “do-while” is (n<3 or n> 30). After that I print the menu list has all of things that teacher needs. In the “switch-case” ➢ Case 1 is mandatory, run Input () function, after that, assign check=true and return to the menu ➢ If user choose case 2, it will run showinfo () function, it happens if user input case 1 first. Finish case 2, return to the menu. ➢ Then in the case 3, it is the way to quit this application.
Figure 7. Result of menu function After enter 3 students Example: When you select option 2, you will get a list of all student IDs and grades
When the user chooses option 2, the program will display on the screen all the student’s information including the student’s grade and ID Figure 9. Result of option 2 Show information
Software Development Life Cycle (SDLC) is a process used by the software industry to design, develop and test high quality software’s. The SDLC aims to produce a high-quality software that meets or exceeds customer expectations, reaches completion within times and cost estimates. ➢ SDLC is the acronym of Software Development Life Cycle. ➢ It is also called as Software Development Process. ➢ SDLC is a framework defining tasks performed at each step in the software development process. ➢ ISO/IEC 12207 is an international standard for software life-cycle processes. It aims to be the standard that defines all the tasks required for developing and maintaining software
1.1. Test schedule Test case Start date End date Intend time (hour) 1 21/12/2021 21/12/2021 1 2 21/12/2021 21/12/2021 1 3 21/12/2021 21/12/2021 1