March 28, 2015

Homework Help: java programmin

Posted by jon on Tuesday, September 29, 2009 at 4:21pm.

You have been hired by the local library to build a small program which will assist
in calculating the fines for overdue items returned past their due date. For this
first portion of the program, you need to create a simple program which will
complete the following tasks:
• Display text to ask for the name of the item being returned, then read in
the name.
• Display text to ask for the number of days the item is overdue, then read
in the number of days overdue.
• Display text to request the amount of the fine per day (different items may
have different amounts), then read in the amount of the fine per day for
this item.
• Calculate the overdue amount for the item.
• Print out the resulting overdue amount with the name of the item, the
number of days overdue, and the amount of the total fine. The display
should print the monetary amount with the ($) indicator and 2 decimal
places (i.e. “Checking in the item <<item name>>, which was <<days
overdue>> days overdue. The total fine is $0.02”

Answer this Question

First Name:
School Subject:

Related Questions

PHI103 - Cathy owes the local video store six overdue movies.Each of Cathy's ...
java programming - Your boss at Ruritania Weather Center (RWC) has asked you to ...
psy - Cathy owes six overdue movies to her local video store. Since each of ...
computers - You have been hired by your local library to help it set up a LAN to...
Maths - Frosni receieved her credit card statement, which showed she owed $5850...
Java - Can someone please help me out!!!I included what I have so far. *Purpose ...
CS - build a program that produce a bar chart showing the population growth of ...
English - 1. We should not scribble in books in the library. 2. We should not ...
student supervision - which of the following is an example of a clerial duty a ...
statistics - 2. Punkey Electronics, a small manufacturer of electronic research ...