I l @ ve RuBoard |
Exercise 22-1: Add code to the queue class of Exercise 13-3 that will trigger an exception when too many items are put in the queue. Exercise 22-2: Take the fraction class from Exercise 18-1 and add code to generate an exception when a divide-by-zero occurs. In addition, add code to generate an exception when a bad number is read. Exercise 22-3: Update the checkbook class of Exercise 13-2 so it generates an exception when your balance goes below zero. Exercise 22-4: Write a function count_letter that takes a single character. This function will count the number of consonants and vowels . If a nonletter is given to the function, it generates an exception. |
I l @ ve RuBoard |