CS 240 – Computer Programming I Lab Kalpa Gunaratna –
Contact Contact by Office hours 376 Joshi Mondays & Wednesday 3:00 pm – 4:00 pm
In lab Read from keyboard a character. While loop to continue loop until the range is satisfied. for loop can also be used. Use Math package to square numbers. Use documentations and JavaDocs. Input – case insensitive
Post lab Isoscele triangle – at least two sides are equal. Should work for only required shapes – incorrect input should be handled. Printing traingles – use previous lab's triangle shape and try changing it. For triangles, entered number should be the number of rows.
Reminders Submit net beans projects to WebCT (marks will be deducted if not hereafter). Put your JavaDoc in proper position. Use comments where necessary. Indent your code and format. Remove unnecessary code fragments.