1 - Unit 1 - Assignment 1 Frontsheet
1 - Unit 1 - Assignment 1 Frontsheet
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
❒ Summative Feedback: ❒ Resubmission Feedback:
To solve this problem, I will use bubble sorting algorithm because it simple.
This algorithm will swap the variable if the next variable is greater than the current. It does this constantly
until the array is in the corresct order.
CHAPTER 2. Analyze the problem and design the
solutions by the use of suitable methods
2.1. Analyze the problem
Input :
o Number of students to insert
o Student information (Names/Grades) to insert
Output :
o A sorted student list
Variable used in the program:
o Int n: number of student to insert
o Double array grade: store grades of students
o String array name: store student’s names
Structures :
o While loop
o For loop
o If/else
2.2. Flowchart of the algorithm
First, the program will ask for how many students user want to add and read that value, save to
an integer variable. Then, it declare two array studentName and student Grade to store student
names and grades.
Next, the program will run the bubble sort algorithm using 2 for loops. The IF structures is to
check if the grade in the next index is lower than the one with current index value. If true, it
will swap 2 grades value and so on. I have to swap the name the same as swapping the grade so
that the student name and grade pair still go with each other. tempGrade and tempName are the
two variables that I use to temporarily store the value during the swapping process.
Planning
Analyzing the user’s requirements and planning for the quality assurance requirements. This stage is
implemented by the senior members of the team, the sales department, market surveys and domain
experts.
Defining
Define the product requirements and get them approved by the customer.
Designing
Design the architecture of the product, determine how the data will flow or the communication between
the product and external, third-party modules.
Developing (Building)
The programmers (developers) will write the program base on the design and requirements above.
Testing
Tester or programmer will test the product, find bugs and debugging.
Deploying
At this stage, the final, stable version of the product will be released.
3.3.2. How the source code is compiled and run
The compiler takes the source code and translate it into machine language module (called an object file).
Next, linker will combines this object file with other previously compiled object files (in particular run-
time modules) to create an executable file. (Anon., n.d.)