Results 1 to 3 of 3
  1. #1
    ibda-soft is offline Member
    Join Date
    Oct 2008
    Posts
    2
    Rep Power
    0

    Default Help!!!MonetaryUnits.java

    /*
    * Write a program that calculates monetary units in Omani Rials
    * given a number representing an amount of money in Omani Rials.
    * The monetary units are as follows starting from bigger notes:
    *
    * 50 Rial note.
    * 20 Rial note.
    * 10 Rial note.
    * 5 Rial note.
    * 1 Rial note.
    *
    *------------------------------Sample Run------------------------------
    * Enter amount of money: 256
    * Your amount of 256 Omani Rials consists of
    * 5 (50 Rial notes)
    * 0 (20 Rial notes)
    * 0 (10 Rial notes)
    * 1 (5 Rial notes)
    * 1 (1 Rial notes)
    */
    import java.util.Scanner;
    public class MonetaryUnits {
    public static void main (String [] args ) {

    // Data
    int rials
    int


    ................................................

    How I can do like this requirement by java??

    I am silling wait your assis...


    rgards

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    10

    Default

    Do your own homework, or at least show some effort.

    We are not going to do your homework for you. Post what code you have, along with any compiler/error messages you are getting, as well as a brief, but complete description of what it is producing and how that differs from what it is suppossed to produce.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,933
    Rep Power
    20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •