



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Design and expression of algorithms for improving algorithm skills for computer science students
Typology: Exercises
1 / 6
This page cannot be seen from the preview
Don't miss anything!
Algorithm Questions with Answers 1 - Print Hello World 10 Times Structured English: BEGIN Counter EQUAL 0 IF Counter EQUAL or GREATER 10 REPEAT WRITE “Hello World” Counter EQUAL Counter PLUS 1 END REPEAT END IF END Pseudocode: Counter = 0 If (counter<10) Repeat Print “Hello World” Counter = Counter + 1 End Repeat End If Flowchart:
2 - Find the sum of 5 numbers entered by user Structured English: BEGIN Cnt EQUAL 0 Sum EQUAL 0 IF Cnt EQUAL or GREATER 5 REPEAT WRITE “Please Enter 5 Number to Sum up all” GET number Counter EQUAL Counter PLUS 1 Sum EQUAL Sum PLUS Number END REPEAT END IF END Pseudocode:? Flowchart: