















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
Pass Pass Pass Pass Pass Pass Pass Pass Pass
Typology: Assignments
1 / 23
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