Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dr. Nouf Aljaffan naljaffan@ksu.edu.sa Exercise solutions Dr. Nouf Aljaffan naljaffan@ksu.edu.sa.

Similar presentations


Presentation on theme: "Dr. Nouf Aljaffan naljaffan@ksu.edu.sa Exercise solutions Dr. Nouf Aljaffan naljaffan@ksu.edu.sa."— Presentation transcript:

1 Dr. Nouf Aljaffan naljaffan@ksu.edu.sa
Exercise solutions Dr. Nouf Aljaffan

2 Exercise 1 Write an algorithm to find the perimeter of triangle
Nouf Aljaffan (C) 2018

3 BEGIN READ L,B P=2*(L+P) WRITE (DIPLAY) P END Nouf Aljaffan (C) 2018

4 Write an algorithm to find greatest of given three numbers
1 Write an algorithm to check whether given integer value is PRIME or NOT. 2 Exercise 2 Nouf Aljaffan (C) 2018

5 Write an algorithm to find greatest of given three numbers
Nouf Aljaffan (C) 2018

6 Write an algorithm to check whether given integer value is PRIME or NOT.
Nouf Aljaffan (C) 2018

7 Write an algorithm to check whether given integer value is PRIME or NOT.
Nouf Aljaffan (C) 2018

8 Exercise 3 ABC company plans to give a 6% year-end bonus to each of its employees earning Rs 6,000 or more per month , and a fixed Rs 250 bonus to the remaining employees. Write an algorithm to calculate the bonus for an employee Nouf Aljaffan (C) 2018

9 Nouf Aljaffan (C) 2018

10 References https://computationalthinkingcourse.withgoogle.com/unit
Nouf Aljaffan (C) 2018


Download ppt "Dr. Nouf Aljaffan naljaffan@ksu.edu.sa Exercise solutions Dr. Nouf Aljaffan naljaffan@ksu.edu.sa."

Similar presentations


Ads by Google