You are on page 1of 1

Level CSII Module 4 Task 2 Class

Worksheet Student(s) Date

Program with decisions and repetitions

Let’s create a program

Now it’s your time to write a program that accepts the grades of 5 lessons from a user. The user will enter
their scores into 5 separate textboxes. Then calculate the average of the scores and display the
corresponding message according to their scores on a label. See the table below with the scores.

Scores Message
0-49 “Rejected”
50-69 “Good”
70-89 “Very Good”
90 -100 “Excellent”

Note. The program should:


 Support decimals as input numbers.
 Check the input data, as the valid scores are between 0 and 100. Checking the input data should be
done with a repetitive procedure until the valid value is given each time.

© Binary Logic SA 2018. PHOTOCOPIABLE . Last update: 24/1/20 - Page 1 of 1

You might also like