In Circle Drawing c1 centered at 510 radius 3 In Figure Centering at 3314 In

In circle drawing c1 centered at 510 radius 3 in

This preview shows page 8 - 12 out of 27 pages.

In Circle Drawing c1 centered at (5,10) radius 3 In Figure. Centering at (33,14) In Hexagon erasing In Hexagon Drawing h1 centered at (33,14) width 100 height 50
Image of page 8
Assignment 6: Add an exception for divide by zero to your fraction class. Write a program to test it. Example Output: --------------------Configuration: <Default>-------------------- Please enter the numerator: 1 Please enter the denominator: 0 Denominator cannot be zero. Please enter the numerator: Note, this must be handled by DenominatorIsZeroException.java. __________________________ Write a program that reads and writes from binary or text files. Example Output: --------------------Configuration: <Default>-------------------- Enter the file name: kenb Choose binary or text file(b/t): b Choose read or write(r/w): w Enter a line of information to write to the file: lasdklj Would you like to enter another line? Y/N only n Continue? (y/n)y Enter the file name: kenb Choose binary or text file(b/t): b Choose read or write(r/w): r File contains: lasdklj Continue? (y/n)y Enter the file name: kent Choose binary or text file(b/t): t Choose read or write(r/w): w Enter a line of information to write to the file: OOP Would you like to enter another line? Y/N only Y Enter a line of information to write to the file: Java, C++ not C. Would you like to enter another line? Y/N only n Continue? (y/n)y Enter the file name: kent Choose binary or text file(b/t): t Choose read or write(r/w):r File contains: OOP Java, C++ not C. Continue? (y/n)n Process completed.
Image of page 9