CA Algorithms ISM 2023 2
CA Algorithms ISM 2023 2
Course code/ Title Basics of programming and Applied Algorithms I Credit value ___02___
Duration: 2hours Date:________________________ Venue: Hall________
Course Instructor Mr. PEUPIE GUY BERTRAND
Instructions
All questions carry equal marks
Answer any two exercises
For question 2 and 3 make sure you write down the complete algorithmic folder (principle
of resolution, working environment, algorithm)
For question 1, make sure you show on your paper, the execution of algorithm.
General Presentation of your work is important as well as the proper indentation of your
algorithms.
Question 1 : 10marks
1
Question 2:( 3+2+5 i.e. 3 marks for working principle, 2 for working environment, 5 for the
algorithm)
A triangle can be classified based on the lengths of its sides as equilateral, isosceles or
scalene. All 3 sides of an equilateral triangle have the same length. An isosceles triangle has
two sides that are the same length, and a third side that is a different length. If all of the sides
have different lengths then the triangle is scalene. Write an algorithm that reads the lengths of
3 sides of a triangle from the user. Display a message indicating the type of the triangle.
Write an algorithm that reads an integer from the user. Then your algorithm should display a
message indicating whether the integer is even or odd.