CSI104 Foundations Of Computer ScienceDuration 90



Lab  2:  Algorithm

Objective: 

 Define an algorithm and relate it to problem-solving

 Define three constructs and describe their use in algorithms.

 Describe pseudocode and how they are used in algorithms.

 Describe UML diagrams and how they are used in algorithms.

Materials:

Based on exercises of chapter 8 in the textbook “Foundations Of Computer Science, 4nd  

Edition, Behrouz Forouzan, 2017.” 

Student's task:

- Review the whole chapter 8 content in the textbook.

- Write down solutions to exercises (step by step)

- Finish exercises and submit the results to the lecturer in class.

Scoring scale: 10 

Students will represent the algorithm of the problem in two ways: pseudo-code and UML

Sample: Write an algorithm to calculate the sum of two integers

Using  pseudo-code:

Input:  num1, num2

Processing:         result=num1+num2

Output: print out result



LINK DOWNLOAD



Lab  2:  Algorithm

Objective: 

 Define an algorithm and relate it to problem-solving

 Define three constructs and describe their use in algorithms.

 Describe pseudocode and how they are used in algorithms.

 Describe UML diagrams and how they are used in algorithms.

Materials:

Based on exercises of chapter 8 in the textbook “Foundations Of Computer Science, 4nd  

Edition, Behrouz Forouzan, 2017.” 

Student's task:

- Review the whole chapter 8 content in the textbook.

- Write down solutions to exercises (step by step)

- Finish exercises and submit the results to the lecturer in class.

Scoring scale: 10 

Students will represent the algorithm of the problem in two ways: pseudo-code and UML

Sample: Write an algorithm to calculate the sum of two integers

Using  pseudo-code:

Input:  num1, num2

Processing:         result=num1+num2

Output: print out result



LINK DOWNLOAD

M_tả

M_tả

Không có nhận xét nào: