Example Report

Hi everybody,

I've copied an example of the program test report for assignment 5 below. Most of you had trouble getting at least some parts of your programs to work well. Please have a look at the output of this assignment. Please also let me know if you need an example implementation.

I've included below the contents of the files that I used to test your programs. The contents are shown at the top of the Test Results section. By comparing your program's output with the contents of these files, it should be clear what the results should have been and what errors should have been handled. I tested your programs more harshly than I scored them. Failing to pass some of these tests will not lead to point deduction.

Let me give a brief explanation of all the cases that I tested.

Again, I tested your programs more harshly than I scored them. Failing the pass some of these tests will not lead to point deduction.

If you submitted your assignment 5, by tomorrow, you will have received an email from me with your report. If you haven't received the email by tomorrow, let me know. Also let me know if you have any questions regarding your score.

Cheers!
Jade


Here is your score for Assignment 5.

Score: TBD%

Let me know if you have any questions regarding your score. And let me know if you want a copy of an example implementation for the assignment.

Regards,
Jade

Grading Guildelines


Test Results

The following files were used during the tests:

% java ChengJade5 Biagioni.txt
Directory Contents: Edo Biagioni 12345678901 esb@hawaii.edu Edo Biagioni 18089563891 esb@hawaii.edu Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: esb@hawaii.edu Edo Biagioni 12345678901 esb@hawaii.edu Edo Biagioni 18089563891 esb@hawaii.edu Directory Contents: Edo Biagioni 12345678901 esb@hawaii.edu Edo Biagioni 18089563891 esb@hawaii.edu Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: yucheng@hawaii.edu Jade Cheng 18081234567 yucheng@hawaii.edu Directory Contents: Edo Biagioni 12345678901 esb@hawaii.edu Edo Biagioni 18089563891 esb@hawaii.edu Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: Edo Biagioni Done removing. The number of entries removed is 2 Directory Contents: Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: Edo Biagioni No such entry to remove. Directory Contents: Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: Jade Cheng Done removing. The number of entries removed is 1 Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: Someone Not In The Directory No such entry to remove. Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: SomeoneNotIn@TheDirectory.com No such email address found. Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE Biagioni.txt % TYPE Biagioni-Golden.txt % FC /L /N Biagioni.txt Biagioni-Golden.txt Comparing files Biagioni.txt and BIAGIONI-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 GoodBook1.txt
Directory Contents: A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE GoodBook1.txt A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM % TYPE GoodBook1-Golden.txt A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM % FC /L /N GoodBook1.txt GoodBook1-Golden.txt Comparing files GoodBook1.txt and GOODBOOK1-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 GoodBook2.txt
Directory Contents: A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE GoodBook2.txt A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM % TYPE GoodBook2-Golden.txt A 1111111111 A@A.COM B 2222222222 B@B.COM C 3333333333 C@C.COM % FC /L /N GoodBook2.txt GoodBook2-Golden.txt Comparing files GoodBook2.txt and GOODBOOK2-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 GoodBook3.txt
Directory Contents: A 1111111111 A@1.com a 2222222222 a@2.com A 3333333333 A@3.com a 4444444444 a@4.com Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: A 1111111111 A@1.com a 2222222222 a@2.com A 3333333333 A@3.com a 4444444444 a@4.com Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE GoodBook3.txt A 1111111111 A@1.com a 2222222222 a@2.com A 3333333333 A@3.com a 4444444444 a@4.com % TYPE GoodBook3-Golden.txt A 1111111111 A@1.com a 2222222222 a@2.com A 3333333333 A@3.com a 4444444444 a@4.com % FC /L /N GoodBook3.txt GoodBook3-Golden.txt Comparing files GoodBook3.txt and GOODBOOK3-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 GoodBook4.txt
Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: The database is empty. Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE GoodBook4.txt % TYPE GoodBook4-Golden.txt % FC /L /N GoodBook4.txt GoodBook4-Golden.txt Comparing files GoodBook4.txt and GOODBOOK4-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 GoodBook5.txt
Directory Contents: Adam 1234567890 Adam@h-a-w-a-i-i.edu Bill 1234567890 B.i.l.l@hawaii.edu Chris 1234567890 Chris@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: save Done saving. Directory Contents: Adam 1234567890 Adam@h-a-w-a-i-i.edu Bill 1234567890 B.i.l.l@hawaii.edu Chris 1234567890 Chris@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option: quit % TYPE GoodBook5.txt Adam 1234567890 Adam@h-a-w-a-i-i.edu Bill 1234567890 B.i.l.l@hawaii.edu Chris 1234567890 Chris@hawaii.edu % TYPE GoodBook5-Golden.txt Adam 1234567890 Adam@h-a-w-a-i-i.edu Bill 1234567890 B.i.l.l@hawaii.edu Chris 1234567890 Chris@hawaii.edu % FC /L /N GoodBook5.txt GoodBook5-Golden.txt Comparing files GoodBook5.txt and GOODBOOK5-GOLDEN.TXT FC: no differences encountered
% java ChengJade5 Biagioni.txt
Directory Contents: Edo Biagioni 12345678901 esb@hawaii.edu Edo Biagioni 18089563891 esb@hawaii.edu Jade Cheng 18081234567 yucheng@hawaii.edu Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option:
% java ChengJade5 Biagioni.txt BadPath.txt
Usage: ChengJade5 path
% java ChengJade5 BadPath.txt
Unable to open the file BadPath.txt
% java ChengJade5
Usage: ChengJade5 path
% java ChengJade5 BadBook1.txt
Unexpected end of file BadBook1.txt
% java ChengJade5 BadBook2.txt
Invalid phone number: ONE-TWO-FOUR
% java ChengJade5 BadBook3.txt
Invalid phone number: (808)-123-4567
% java ChengJade5 BadBook4.txt
Invalid phone number:
% java ChengJade5 BadBook5.txt
Directory Contents: 1234567890 1234567890 Choose one of the four options: 1) Type 'quit' to exit the program. 2) Type 'save' to save the database. 3) Type an email address containing '@' to find matching entries. 4) Type a name to remove. Your option:
Valid HTML 4.01 Valid CSS