Lab 3 Solution

$35.00 $24.00

PROGRAM SPECIFICATIONS   For this lab you will create a bunch of classes to solve the problem. You must have the appropriate @Override and enforce the appropriate preconditions. All parameters must be final.   CSCD211Lab3.java   I have provided a comprehensive main. You may not change this file.   CSCD211Lab3Methods.java   Public methods that you…

You’ll get a: . zip file solution

 

 
Categorys:

Description

5/5 – (2 votes)

PROGRAM SPECIFICATIONS

 

For this lab you will create a bunch of classes to solve the problem. You must have the appropriate @Override and enforce the appropriate preconditions. All parameters must be final.

 

CSCD211Lab3.java

 

I have provided a comprehensive main. You may not change this file.

 

CSCD211Lab3Methods.java

 

Public methods that you must write

  • fillArray – must call the first EVC above for Book

 

  • menu

 

  • printBooks
  • readFileName

 

  • addBook
  • createBook – must call the second EVC above for Book

 

  • getGenre

 

The menu choices are

 

  1. Print the books to the screen
  2. Print the books to a file
  3. Sort the book using compareTo
  4. Sort the books by first author as a Comparator
  5. Add a book
  6. Quit

 

SPECIFICATIONS

 

  • You must verify all values are in range menu, number of authors, etc.

 

  • You must use my package for the FileUtil

 

FILE SPECIFICATIONS

 

  • of Books in the file Title

ISBN Pages Genre Pub Name Pub City

 

Number of Authors One Author per line

 

Genre strings are guaranteed to be one of the following in any case

 

  • fiction

 

  • non-fiction

 

  • romance

 

  • education

 

  • sci-fi

 

TO TURN IN

 

A zip file, in Canvas, by the required due date containing:

 

  • all java files

 

  • all input file(s) used to test your program program

 

  • all output file(s)

 

  • a test run named cscd211lab3out.txt – testing all aspects

 

  • We should be able to download the zip and compile your code, and then run your code.

 

Name your zip, your last name first letter of your first name lab3.zip (Example: steinersl