$15.00 Library Fine Calculator Part 2 and 3
- From Computer-Science: Programming-Methods , Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on Oct. 19, 2009
- Asked on Oct 14, 2009 at 8:00:26PM
Q:Library Fine Calculator Part 2 and 3
Attached is my Library Fine Calculator part 1. I just need to modify the fine calculator
in the following ways:
• Continue to request information on overdue items, including name, overdue
days, and fine amounts until the librarian enters no to the question: "Do you
have more items to check in?"
• Program the application to verify that each number entered by the librarian
is a positive number. If either the days overdue or the amount of the fine is
not a positive number, the application should prompt the user to enter a
positive amount.thats part 2 and part 3 is need to use a method in
the LibraryItem class to calculate and return the fine to the main program
for output, as well as the Item name to print out the name of the checkedin
item.
• Create an object class called LibraryItem
• The object class should be used to store the name of the item, the
days overdue, and the amount of the fine
• The object class should have a constructor which sets the initial
values of the LibraryItem and is initialized in the main program .
• The object class also needs a method which calculates and returns
the value for the fine for the item.
• Change the operation of the program to use the LibraryItem class.
All of the logical operation will still be driven in the main program,
however the object class will store the library item information and
return the calculated fine.Attachments:
LibraryCalculator.java (1K)



