Download presentation
Presentation is loading. Please wait.
Published byFanny Kusnadi Modified over 6 years ago
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
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.