java programmin

posted by .

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”

  • java programmin -

    Which part of the problem you would like to get help?

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Java

    Can anybody help me figure how to post a Java file to as an attachment. I need to post this in my classroom forum but I have not clue to how. I am using the program called Netbeans. Thanks
  2. CS

    build a program that produce a bar chart showing the population growth of prairieville, a small town in the midwest, at 20 year intervals during the past 100 years. the program should read in the population figures (rounded to the …
  3. Java

    Can someone please help me out!!!I included what I have so far. *Purpose Implement a Java-method with three local int variables a, b, c, d and e that sorts these three values in ascending order by comparing and exchanging their values. …
  4. JAVA PROGRAMMING

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  5. java programming

    Your boss at Ruritania Weather Center (RWC) has asked you to write a small program for center. The specification are as follows: a. the program asks a user to enter a number between 1 and 12 inclusive representing the months January …
  6. java programming

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  7. MATH HELP

    Joseph borrowed a book from a library. The library charged a fixed rental for the book and a late fee for every day the book was overdue. The expression below shows the charges Joseph paid for the book when he returned it x days after …
  8. Object Oreinted Programming in java

    write a program that Enter price item,Enter No: of Items and Total Due of Items.Subtract 0.5 to TotalDue and , Print The total Amount.
  9. Java programming

    Need help not sure how do this Do an analysis of the following program: Write a program to input the dimension of a cylinder, and print the surface area and volume.
  10. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert temperature …

More Similar Questions