Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Library Fines A local public library needs a program to calculate the overdue fines owed by its patrons. The library needs the clerk to

image text in transcribed

1. 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 patron's 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) 1. Book 2. 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 Each time the program is executed it calculates the fine for a single item. If the user enters invalid data then a message must be presented on the screen specifying the invalid information and the calculation is a) Run your program multiple times using the following information as input. After each run of the is 75 years old and has an overdue magazine. The magazine is 1 day overdue aborted program save your entire console output screen to a text file as discussed in our labs 22222 is 30 years old and has an overdue magazine. The magazine is 10 days overdue 33333 is 10 years old and has an overdue DVD. The DVD is 2 days overdue. 44444is 50 years old and has an overdue DVD. The DVD is 2 days overdue. 55555 is 20 years old and has an overdue book. The book is 60 days overdue. .66666 is 15 years old and has an overdue magazine. The magazine is 3 days overdue. Just a slmple Java code. NO Arrays

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions