Question: wrive java proram with comment Library Fines A local public library needs a program to calculate the overdue fines owed by its patrons. The library

wrive java proram with comment

Library Fines

A local public library needs a program to calculate the overdue fines owed by its patrons. The library needs the clerk to enter the patrons library card number, age of the patron, the number of days overdue for the item and the type of the item using the follow (enter 1, 2 or 3):

Book

Magazine

DVD

Books that are overdue are assessed a fine of 50 cents per day. Magazines are assessed a fine of 25 cents per day. DVDs are assessed a fine of $1.50 a day. There is a maximum fine assessed of $5.00. Senior Citizens (over the age of 70) do not pay fines. Juvenile patrons (ages 6 through 17) pay a maximum fine of $1.00.

Once the fine has been calculated all information about the patron and the overdue material should be printed to the screen. Here is an example of the report that should be output:

Card number 12345

Age 22

Item Type DVD

Number of Days Overdue 2

Overdue Fine $3.00

Fine adjustment reason (e.g, Senior citizen, Juvenile, exceed max)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!