Question
Asked by:
BoodieN
 

$15.00 Library Fine Calculator Part 2 and 3

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)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
Neel
Neel
Rating (237): C
Questions Asked: 0
Tutorials Posted: 1637, earned $2,004.41
 

$15.00 Solution

  • This tutorial hasn't been purchased yet.
  • Posted on Oct 15, 2009 at 07:52:31PM
A:
Preview: ... I have at ...

The full tutorial is about 6 words long plus attachments.

Attachments:
(0K)
Posted by:
Neel
Neel
Rating (237): C
Questions Asked: 0
Tutorials Posted: 1637, earned $2,004.41
 

$15.00 Solution

  • This tutorial hasn't been purchased yet.
  • Posted on Oct 15, 2009 at 07:57:32PM
A:
Preview: ... have send the solution from the give ...

The full tutorial is about 26 words long .
Posted by:
 

$12.00 Java source code for Library Calculator

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Oct 15, 2009 at 1:15:35PM
A:
Preview: ... blic class LibraryCalculator    {    public static void main(String args[]) throws Exception    {   String name;   double fee;   int days;      String choice;   Scanner sc = new Scanner( System.in );   DecimalFormat currency=new DecimalFormat("#.##");   System.out.println( "Welcome to the Library Fine Calculator" );   System.out.println( "*~* ...

The full tutorial is about 379 words long plus attachments.

Attachments:
library calculator.zip (3K) 

 library calculator/LibraryCalculator.class
 library calculator/LibraryCalculator.java
 library calculator/LibraryItem.class
 library calculator/LibraryItem.java
 ]

Posted by:
modulo51
modulo51
Rating (110): A-
Questions Asked: 1
Tutorials Posted: 353, earned $2,117.64
 

$15.00 Java: 2 class solution, NetBeans folder, UseNotes, ScreenShot

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Oct 15, 2009 at 11:39:01PM
A:
Preview: ... double finePerDay;     // constructor:     public LibraryItem(String name, int days, double fine) {         this.nameOfItem = name;         this.daysOverdue = days;         this.finePerDay = fine;     }     // no argument constructor:     public Li ...

The full tutorial is about 141 words long plus attachments.

Attachments:
LibraryItem.java (1K) (Preview)
LibaryUseNotes.txt (4K) (Preview)
outputScreenShot.jpg (64K) (Preview)
LibraryZipped.zip (63K) 

 LibraryZipped/LibaryUseNotes.txt
 LibraryZipped/Library/build.xml
 LibraryZipped/Library/build/classes/.netbeans_automatic_build
 LibraryZipped/Library/build/classes/LibaryUseNotes.txt
 LibraryZipped/Library/build/classes/LibraryCalculator.class
 LibraryZipped/Library/build/classes/LibraryItem.class
 LibraryZipped/Library/dist/Library.jar
 LibraryZipped/Library/dist/README.TXT
 LibraryZipped/Library/manifest.mf
 LibraryZipped/Library/nbproject/build-impl.xml
 LibraryZipped/Library/nbproject/genfiles.properties
 LibraryZipped/Library/nbproject/private/config.properties
 LibraryZipped/Library/nbproject/private/private.properties
 LibraryZipped/Library/nbproject/private/private.xml
 LibraryZipped/Library/nbproject/project.properties
 LibraryZipped/Library/nbproject/project.xml
 LibraryZipped/Library/src/LibraryCalculator.java
 LibraryZipped/Library/src/LibraryItem.java
 LibraryZipped/output.html
 LibraryZipped/output.txt
 LibraryZipped/outputScreenShot.jpg
 ]

   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty