A. Triangle Problem
The second assignment that can be given is the 'Triangle Problem'.
The program reads three numbers as input. The numbers represent the lengths of the three sides of a
triangle. The program determines whether the triangle is scalene
(three unequal sides), isosceles (two equal sides), or equilateral (three equal
sides).
The program displays the result.
An extensive analysis is given in Analyzing the Triangle Problem
B. Login Problem
Another simple assignment that will help students appreciate testing is the 'Login Problem'.
The program gets userid and passwd from the user as text. Two options exist - Cancel and Login.
A list of possible test cases for the problem is given in Login Problem
Time taken for each session depends on the strength and weakness of the class. So, it has to be decided by the instructor.
Addendum : Please leave a comment. Suggestions, comments, discussions and queries are most welcome.