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 Guidelines


Test Results for Assignment 5

The following files were used during the tests:

javac -Xlint:all *.java
--> EXIT CODE: 0 <--
java ChengJade5 ExampleInputFile.txt
-------Directory Contents:-------

Edo Biagioni
18089563891
esb@hawaii.edu
Edo Biagioni
12345678901
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

-------Search email result:-------

Edo Biagioni
18089563891
esb@hawaii.edu
Edo Biagioni
12345678901
esb@hawaii.edu

-------Directory Contents:-------

Edo Biagioni
18089563891
esb@hawaii.edu
Edo Biagioni
12345678901
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

-------Search email result:-------

Jade Cheng
18081234567
yucheng@hawaii.edu

-------Directory Contents:-------

Edo Biagioni
18089563891
esb@hawaii.edu
Edo Biagioni
12345678901
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: 
no-such@email.com

-------Search email result:-------

No such email address, 'no-such@email.com', found.

-------Directory Contents:-------

Edo Biagioni
18089563891
esb@hawaii.edu
Edo Biagioni
12345678901
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

-------Remove entry result:-------

Done removing. The number of entries removed: 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: 
Jade Cheng

-------Remove entry result:-------

Done removing. The number of entries removed: 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: 
no-such-person-name

-------Remove entry result:-------

No such name, 'no-such-person-name', 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: 
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
--> EXIT CODE: 0 <--

type Golden-ExampleInputFile.txt
--> EXIT CODE: 0 <--

type ExampleInputFile.txt
--> EXIT CODE: 0 <--

fc Golden-ExampleInputFile.txt ExampleInputFile.txt
Comparing files Golden-ExampleInputFile.txt and EXAMPLEINPUTFILE.TXT
FC: no differences encountered

--> EXIT CODE: 0 <--
java ChengJade5 GoodInputFile-1.txt
-------Directory Contents:-------

AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
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.
save

  4) Type a name to remove.

Your option: Done saving.

-------Directory Contents:-------

AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
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
--> EXIT CODE: 0 <--

type Golden-GoodInputFile-1.txt
AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

type GoodInputFile-1.txt
AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

fc Golden-GoodInputFile-1.txt GoodInputFile-1.txt
Comparing files Golden-GoodInputFile-1.txt and GOODINPUTFILE-1.TXT
FC: no differences encountered

--> EXIT CODE: 0 <--
java ChengJade5 GoodInputFile-2.txt
-------Directory Contents:-------

AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
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.
save


Your option: Done saving.

-------Directory Contents:-------

AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
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
--> EXIT CODE: 0 <--

type Golden-GoodInputFile-2.txt
AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

type GoodInputFile-2.txt
AAA
1111111111
A@A.COM
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

fc Golden-GoodInputFile-2.txt GoodInputFile-2.txt
Comparing files Golden-GoodInputFile-2.txt and GOODINPUTFILE-2.TXT
FC: no differences encountered

--> EXIT CODE: 0 <--
java ChengJade5 GoodInputFile-3.txt
-------Directory Contents:-------

BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
CCC
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:-------

BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
CCC
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
--> EXIT CODE: 0 <--

type Golden-GoodInputFile-3.txt
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

type GoodInputFile-3.txt
BBB
2222222222
B@B.COM
CCC
3333333333
C@C.COM
CCC
3333333333
C@C.COM
--> EXIT CODE: 0 <--

fc Golden-GoodInputFile-3.txt GoodInputFile-3.txt
Comparing files Golden-GoodInputFile-3.txt and GOODINPUTFILE-3.TXT
FC: no differences encountered

--> EXIT CODE: 0 <--
java ChengJade5 GoodInputFile-4.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.
save


Your option: 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
--> EXIT CODE: 0 <--

type Golden-GoodInputFile-4.txt
--> EXIT CODE: 0 <--

type GoodInputFile-4.txt
--> EXIT CODE: 0 <--

fc Golden-GoodInputFile-4.txt GoodInputFile-4.txt
Comparing files Golden-GoodInputFile-4.txt and GOODINPUTFILE-4.TXT
FC: no differences encountered

--> EXIT CODE: 0 <--
java ChengJade5 BadInputFile-1.txt
Unexpected end of file BadInputFile-1.txt
--> EXIT CODE: 1 <--
java ChengJade5 BadInputFile-2.txt
Invalid phone number: bad-number-format
--> EXIT CODE: 1 <--
java ChengJade5 No-Such-File.txt
Unable to open the file No-Such-File.txt
--> EXIT CODE: 1 <--
java ChengJade5
Usage: java ChengJade5 path
--> EXIT CODE: 1 <--
java ChengJade5 Argument-1.txt Argument-2.txt
Usage: java ChengJade5 path
--> EXIT CODE: 1 <--
Valid HTML 4.01 Valid CSS